Home >Web Front-end >HTML Tutorial >Web page display problem on mobile phone_html/css_WEB-ITnose
Can the web page be displayed vertically by adding parameters to the head part of the html? Please give me some guidance~~~
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" />