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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:10:171169browse

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
aaab49b6ddf63b66d5c8e6d8c8e6d096

Try

add head
d6b121afe79da6b97c9e85b0c29d692b

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" />

I don’t want the user to zoom,

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