Home  >  Article  >  Web Front-end  >  Size problem of mobile web front-end_html/css_WEB-ITnose

Size problem of mobile web front-end_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:051217browse

What is the physical size of the mobile web (smartphone) front end (the layout is compatible)
iPhone?
Android xx machine?
. . .


Reply to discussion (solution)

Press the width to 100%, or use JavaScript to get the resolution

Set the width to 100%.

480*320

Please check the mate attribute of the mobile browser to set device-width
The current browsers on iPhone and Android can force the device size to be 480*320

Statement:
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