亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - Different resolutions when opening different pages on the mobile phone
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-16 13:21:30
0
1
757

I’m a beginner, trying to make a responsive web page myself without using a framework.
However, there is a very bloody problem on mobile terminal!

Open two web pages and change them to two resolutions!

are: home page, registration page.
The registration page has the same nav and footer parts as the homepage, so the html of the registration page first references the css of the homepage, and then the special css of the registration page.

The test includes the mobile phone simulation that comes with Chrome F12 and HUAWEI G7.

The following is a debugging screenshot of Chrome phone simulation:

Homepage

Registration page

The most important part of the body is the width, and the others can also be seen in the picture.

body {
    width:100%;
}

You can see in the lower right corner that the resolution of the entire body of the second page is much larger. This is also the case on mobile phones. May I ask why this is?

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證0級(jí)講師

reply all(1)
阿神

<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template