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