how to override font boosting in mobile chrome

后端 未结 8 1132
面向向阳花
面向向阳花 2020-12-01 09:32

Is it possible to override font boosting in mobile chrome? I searched the internet before ~including stackoverflow~.

I found that some people say it\'s impossible, a

8条回答
  •  日久生厌
    2020-12-01 10:19

    Android Chrome only applies font boosting to elements with dynamic height. As soon as you specify a height,max-height or line-height, font boosting is not applied. But you should be careful of the inline element like span whose height or max-height property is invalid. In that case you can set the display to inline-block as the below code or other box types whose height can be setted.
    span { font-size:12px; line-height:12px; display:inline-block; }

提交回复
热议问题