热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

跪求:明明已经js动态加载了rem,为什么我的网页在ip6s和4s下还是出现结构混乱

在第一页,姓名刘佳和下面的英文liujia的div,在ip6s下和4s下面被挤得很厉害,明明就做了rem自适应了?为什么还是这样?第二页在6s下面屏幕很长,可以装的下,4s下面就被挤出页

在第一页,姓名刘佳和下面的英文liujia的div,在ip6s下和4s下面被挤得很厉害,明明就做了rem自适应了?为什么还是这样?
第二页在6s下面屏幕很长,可以装的下,4s下面就被挤出页面了?刚开始做,很多不懂,求指教?



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79






   

   

   

   

   

   

   

   

   

   

   

   

   

   

 





   


       


           


               


           


           


           


               

刘佳



               

liujia



           




       




       


           


               


           


           


               


           
       

           
1995年加盟


           


           


       




       
刘佳


       
李继承


       


   




   







       


               
  • 1995


  •            
  • 1996


  •            
  • 1997


  •            
  • 1998


  •            
  • 1999


  •            
  • 2000


  •            
  • 2001


  •        









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
@charset "utf-8";



body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{ margin:0;padding:0;}

html{font-size:100px;}

body{font-size:0.14rem;}



img{display:block;max-width:100%;}



html,body{

    width: 100%;

    height: 100%;

    overflow:hidden;

}

li{list-style: none;}

/*box-sizing:border-box;*/



.container{

    width: 6.4rem;

    height: 100%;

    position: absolute;

    left: 0;

    top: 0%;

}

.container .page{

    height: 100%;

    position: relative;

}



.container .page0{

    background:url(../img/1bg.png) no-repeat center center;background-size: 100% 100%;

    width: 100%;height: 100%;padding-top: 1.34rem;box-sizing:border-box;

}

.show_border{

    margin:0 0 0 1.4rem;width: 3.6rem;height: 4.8rem;background:url(../img/1a.png) no-repeat center center;

    background-size: 100% 100%;z-index: 1;padding-left: 1%;padding-top: 1%; box-sizing:border-box;

    margin-bottom: 3%;

}

.show{

    background:url(../img/2a.png) no-repeat center center;background-size: 100% 100%;

    width: 98%;height: 98.5%;

}

.yun{

    background:url(../img/yun.png) no-repeat center center;background-size: 100% 100%;

    width: 2rem;height: 1rem;margin:auto;

}

.name{

    width: 2.4rem;text-align: center;line-height: 1.2;margin:auto;margin-top: 2%;



}

.name_p1{

    font-size: 0.75rem;font-family: "fzxkjw";

}

.name_p2{

    font-size: 0.34rem;font-family: "方正大标宋简体";

}







.container .page1{

    background:url(../img/2bg.png) no-repeat center center;background-size: 100% 100%;width: 100%;height: 100%;

    padding-top: 24%;box-sizing:border-box;

}

.show1_border{

    margin:0 0 0 0.75rem;width: 4.06rem;height: 3.2rem;background:url(../img/3a.png) no-repeat center center;

    background-size: 100% 100%; margin-bottom: 0.2rem;padding: 0.06rem 0.08rem 0.08rem 0.08rem;box-sizing:border-box;

}

.show1{

    background:url(../img/5a.png) no-repeat center center;background-size: 100% 100%;

    width: 100%;height: 100%;

}

.show2_border{

    margin:0 0 0 0.75rem;width: 4.06rem;height: 3.2rem;background:url(../img/3a.png) no-repeat center center;

    background-size: 100% 100%;padding: 0.06rem 0.08rem 0.08rem 0.08rem;box-sizing:border-box;margin-bottom: 0.3rem;

}

.show2{

    background:url(../img/4a.png) no-repeat center center;background-size: 100% 100%;

    width: 100%;height: 100%;

}

.page1_time{position:absolute;left: 10%;bottom:30%;font-size: 0.34rem;color: #fff; }

.time{}

.page1_title{

margin:auto;

}

.page1_title2{

    margin:auto;

}







.container .page2{

    background:url(../img/3.png) no-repeat center center;background-size: 100% 100%;width: 100%;height: 100%;

   

}

.container .page3{

    background:url(../img/4.png) no-repeat center center;background-size: 100% 100%;width: 100%;height: 100%;

   

}

.container .page4{

    background-color: #f0f;

   

}





.xiangxiatishi{

    display: none;

    position: fixed;

    bottom: 20px;

    left: 50%;

    -webkit-transform:translateX(-50%);

            transform:translateX(-50%);

    -webkit-animation:dong 1s linear 0s infinite alternate;

            animation:dong 1s linear 0s infinite alternate;

}



@-webkit-keyframes dong{

    from{bottom:20px;}

    to{bottom: 60px;}

}

@keyframes dong{

    from{bottom:20px;}

    to{bottom: 60px;}

}



@font-face{

    font-family: fzxkjw;

    font-family:"方正大标宋简体";

    }

/*

@font-face {

    font-family:;

    src: url('MicrosoftYaHei.eot');

    src: url('MicrosoftYaHei.eot?#iefix') format('embedded-opentype'),

             url('MicrosoftYaHei.woff') format('woff'),

             url('MicrosoftYaHei.ttf')  format('truetype'),

             url('MicrosoftYaHei.svg#MicrosoftYaHei') format('svg');

   }



   */

 

.mask{background-color:#999;display:none;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0.4;filter:alpha(opacity:40);z-index:50;}



.dialog_age{width:60%;height:25%;display:none;z-index:100;background-color:#FCC;position:absolute;left:20%;top:30%;}



.dialog_age ul li{text-align:center;font-size:0.2rem;background-color:#6CF;margin:1% auto;padding:0.06rem;}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$(document).ready(

    function() {

        var nowpage = 0;

        $(".container").swipe(

            {

                swipe:function(event, direction, distance, duration, fingerCount) {

                     if(direction == "up"){

                         nowpage = nowpage + 1;

                     }else if(direction == "down"){

                         nowpage = nowpage - 1;

                     }



                     if(nowpage > 3){

                         nowpage = 3;

                         

                     }



                     if(nowpage <0){

                         nowpage = 0;

                     }



                     if (nowpage == 3) {

                         $(".xiangxiatishi").css("display","none")

                     };



                    $(".container").animate({"top":nowpage * -100 + "%"},300);



                    $(".page").eq(nowpage).addClass("cur").siblings().removeClass("cur");

                }

            }

        );



        $('.page1_time').click(function (){

            $('.mask').css({display:"block"});

            $('.dialog_age').removeClass("animated fadeOutUpBig");

            $('.dialog_age').css({display:"block"}).addClass("animated fadeInDownBig");

            })

       

        $('.dialog_age ul li').on('click',function (){

            $('.time').text($(this).html());

            $('.dialog_age').removeClass("animated fadeInDownBig");

            $('.dialog_age').addClass("animated fadeOutUpBig");

            $('.mask').css({display:"none"});

        })





    }

);



   



推荐阅读
  • Nginx使用(server参数配置)
    本文介绍了Nginx的使用,重点讲解了server参数配置,包括端口号、主机名、根目录等内容。同时,还介绍了Nginx的反向代理功能。 ... [详细]
  • 本文分享了一个关于在C#中使用异步代码的问题,作者在控制台中运行时代码正常工作,但在Windows窗体中却无法正常工作。作者尝试搜索局域网上的主机,但在窗体中计数器没有减少。文章提供了相关的代码和解决思路。 ... [详细]
  • Mac OS 升级到11.2.2 Eclipse打不开了,报错Failed to create the Java Virtual Machine
    本文介绍了在Mac OS升级到11.2.2版本后,使用Eclipse打开时出现报错Failed to create the Java Virtual Machine的问题,并提供了解决方法。 ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • Voicewo在线语音识别转换jQuery插件的特点和示例
    本文介绍了一款名为Voicewo的在线语音识别转换jQuery插件,该插件具有快速、架构、风格、扩展和兼容等特点,适合在互联网应用中使用。同时还提供了一个快速示例供开发人员参考。 ... [详细]
  • http:my.oschina.netleejun2005blog136820刚看到群里又有同学在说HTTP协议下的Get请求参数长度是有大小限制的,最大不能超过XX ... [详细]
  • 本文介绍了为什么要使用多进程处理TCP服务端,多进程的好处包括可靠性高和处理大量数据时速度快。然而,多进程不能共享进程空间,因此有一些变量不能共享。文章还提供了使用多进程实现TCP服务端的代码,并对代码进行了详细注释。 ... [详细]
  • 本文介绍了Web学习历程记录中关于Tomcat的基本概念和配置。首先解释了Web静态Web资源和动态Web资源的概念,以及C/S架构和B/S架构的区别。然后介绍了常见的Web服务器,包括Weblogic、WebSphere和Tomcat。接着详细讲解了Tomcat的虚拟主机、web应用和虚拟路径映射的概念和配置过程。最后简要介绍了http协议的作用。本文内容详实,适合初学者了解Tomcat的基础知识。 ... [详细]
  • 《数据结构》学习笔记3——串匹配算法性能评估
    本文主要讨论串匹配算法的性能评估,包括模式匹配、字符种类数量、算法复杂度等内容。通过借助C++中的头文件和库,可以实现对串的匹配操作。其中蛮力算法的复杂度为O(m*n),通过随机取出长度为m的子串作为模式P,在文本T中进行匹配,统计平均复杂度。对于成功和失败的匹配分别进行测试,分析其平均复杂度。详情请参考相关学习资源。 ... [详细]
  • 本文介绍了解决Netty拆包粘包问题的一种方法——使用特殊结束符。在通讯过程中,客户端和服务器协商定义一个特殊的分隔符号,只要没有发送分隔符号,就代表一条数据没有结束。文章还提供了服务端的示例代码。 ... [详细]
  • Spring源码解密之默认标签的解析方式分析
    本文分析了Spring源码解密中默认标签的解析方式。通过对命名空间的判断,区分默认命名空间和自定义命名空间,并采用不同的解析方式。其中,bean标签的解析最为复杂和重要。 ... [详细]
  • 本文介绍了使用AJAX的POST请求实现数据修改功能的方法。通过ajax-post技术,可以实现在输入某个id后,通过ajax技术调用post.jsp修改具有该id记录的姓名的值。文章还提到了AJAX的概念和作用,以及使用async参数和open()方法的注意事项。同时强调了不推荐使用async=false的情况,并解释了JavaScript等待服务器响应的机制。 ... [详细]
  • 本文介绍了使用Java实现大数乘法的分治算法,包括输入数据的处理、普通大数乘法的结果和Karatsuba大数乘法的结果。通过改变long类型可以适应不同范围的大数乘法计算。 ... [详细]
  • android listview OnItemClickListener失效原因
    最近在做listview时发现OnItemClickListener失效的问题,经过查找发现是因为button的原因。不仅listitem中存在button会影响OnItemClickListener事件的失效,还会导致单击后listview每个item的背景改变,使得item中的所有有关焦点的事件都失效。本文给出了一个范例来说明这种情况,并提供了解决方法。 ... [详细]
  • 本文介绍了计算机网络的定义和通信流程,包括客户端编译文件、二进制转换、三层路由设备等。同时,还介绍了计算机网络中常用的关键词,如MAC地址和IP地址。 ... [详细]
author-avatar
傲慢的小草7_170
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有