Reset scale/width/zoom of Safari on iPhone using JavaScript/onorientationchange

前端 未结 7 1115
臣服心动
臣服心动 2021-02-02 00:24

I am displaying different content depending on how the user is holding his/her phone using the onorientationchange call in the body tag. This works great - I hide one div while

7条回答
  •  鱼传尺愫
    2021-02-02 01:16

    I had some problems with the zoom levels changing from landscape to portrait, when the content was larger than the viewport. Setting "minimum-scale=1.0", solved this for me.

提交回复
热议问题