How to set viewport meta for iPhone that handles rotation properly?

前端 未结 9 1824
情话喂你
情话喂你 2020-11-27 10:11

So I\'ve been using:


to get my HTML c

9条回答
  •  生来不讨喜
    2020-11-27 10:40

    Was just trying to work this out myself, and the solution I came up with was:

    
    

    This seems to lock the device into 1.0 scale regardless of it's orientation. As a side effect, it does however completely disable user scaling (pinch zooming, etc).

提交回复
热议问题