Home > Web Front-end > HTML Tutorial > The size problem of mobile web pages_html/css_WEB-ITnose

The size problem of mobile web pages_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:54:01
Original
1265 people have browsed it

The resolution width of my mobile phone is 480px. I made a small webpage with a table specification width of 480px, and set the margin of the webpage to 0px using the margin attribute in css. However, when I access it on my mobile phone, the webpage is fine. The image has shrunk, and there are blank spaces on the left, right and bottom. Only the top part is at the top of the browser. Only by double-clicking the page can it be displayed according to the current width of the mobile phone. Moreover, it is obvious that there is still a blank space at the bottom of the webpage. How can I correctly set it to normal full-screen display on the mobile phone?


Reply to discussion (solution)



I want to achieve the effect of the first picture, but I can only achieve the effect of the first picture. The effect of the two pictures

http://baike.baidu.com/view/8539585.htm?fr=aladdin


I tried my friend’s method, but the web page display seems to be beyond the scope of the browser.

http://baike.baidu.com/view/8539585.htm?fr=aladdin


By the way, I haven’t studied the complexity of responsive layout yet. I just want to realize full-screen display of web pages for my 480PX mobile phone


http://baike.baidu.com/view/8539585.htm?fr=aladdin


By the way, I haven’t studied the complexity of responsive layout yet. I just want to realize the full-screen display of the web page for my 480PX mobile phone
There is no way to do it in one step, your style needs to be readjusted

Are there any experts who can give me advice? ? ? Thank you. . . .

Can’t just use height width 100%?

Can’t just use height width 100%?

Tried it, but it doesn’t work

I’ve also been working on a mobile website recently, and it will work if I distribute it by percentage, because the screen of a mobile phone is also 100%

Mobile phones are becoming popular. Why . The problem you mentioned can be caused by several reasons. I don't dare to draw conclusions without seeing the code. Guess one, your header declaration file uses the page declaration of PC. Guess 2: You did not set the scaling ratio. Guess 3: You may have turned on the manual zoom ratio and then accidentally zoomed out when browsing the web. When you open the second page, the page will be zoomed on your phone screen according to your previous zoom ratio. I dare not guess the rest.

Do you use

*{padding:0;margin:0}
Copy after login

when you hack?

position:absolute;top:0;right:0;bottom:0;left:0

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template