Font size issue with iPhone

前端 未结 3 1504
悲&欢浪女
悲&欢浪女 2020-12-13 04:50

Im currently working on a mobile version of a website, everything is great, works fine on an iPhone, Blackberry and Android.

I have one slight problem, not a big dea

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-13 05:07

    As stated in Neurofluxation's answer you can use the css rule -webkit-text-size-adjust but beware that this can prevent users from adjusting the font size on desktop Webkit as well (see this article for more details).

    In light of this it's likely worth checking via CSS3 media queries (or user agent) to be safe.

    E.g.,

    @media only screen and (max-device-width: 480px) { 
        html {
            -webkit-text-size-adjust: none; 
        }
    }
    

提交回复
热议问题