Home > Web Front-end > HTML Tutorial > Web page display problem on mobile phone_html/css_WEB-ITnose

Web page display problem on mobile phone_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:10:17
Original
1165 people have browsed it

Can the web page be displayed vertically by adding parameters to the head part of the html? Please give me some guidance~~~


Reply to discussion (solution)


head in add


Try

add head


Try
It doesn’t work, I can change it to yours and it can be used horizontally= -=

I wrote two sets of css, hoping to load the wide one on the PC and the narrow one on the pad. As a result, the narrow set was indeed loaded when the pad was displayed in portrait mode. If I turned on the gravity sensor, and after horizontal positioning, it changed back to the wider css because the screen was wider T_T
The original parameters added were

<meta name="viewport" content="user-scalable=no, width=device-width" />
Copy after login

I don’t want the user to zoom,

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