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

前端 未结 7 1140
臣服心动
臣服心动 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:15

    You can set the user-scalable property in the content attribute. Try this:

    
    

    From this answer:

    But if you assign User-scalable=no its means website not allow to zoom in or zoom out.

提交回复
热议问题