iPhone Safari CSS rotation bug

前端 未结 2 1039
囚心锁ツ
囚心锁ツ 2021-02-11 06:43

I have a small mobile phone app that is acting strangely on the iPhone/Mobile Safari. The page renders and works great when it\'s orientation is vertical. When I rotate the phon

2条回答
  •  伪装坚强ぢ
    2021-02-11 07:05

    It's because Mobile Safari on iPhone & iPod Touch does automatic font-size adjustment.

    You can disable it with the following css rule,

    html {-webkit-text-size-adjust:none}

    More info from Safari Reference Library

提交回复
热议问题