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

前端 未结 7 1121
臣服心动
臣服心动 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 00:59

    I had this issue too I think. Try putting a "maximum-scale=1.0" (and maybe a "minumum-scale=1.0" if you feel like it) in your viewport tag. This assumes you don't want the user to be able scale though (which I don't)

提交回复
热议问题