Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
219 views
in Technique[技术] by (71.8m points)

android - What does -webkit-text-size-adjust do?

I am trying to understand the use of -webkit-text-size-adjust:none;.

Adding/Removing that doesn't affect my font sizes on android (chrome) or iOS (safari and chrome). So what's the use?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
-webkit-text-size-adjust

It specifies that if you(author) want's to resize the text when the browser page is zoomed. Most of the times it is better to set it to auto or 100% as the web browser will take care of how resizing of text is to be done.

Note : Mozilla devlopers page says its a non-standard

This article will help you more.

Interesting note : Developers using Twitter Bootstrap may be interested to know that Bootstrap uses ?webkit?text?size?adjust: 100% out of the box : Source Link

Edit

Chrome on android phones uses font boosting, so -webkit-text-size-adjust is being ignored no matter what value you set. You can disable font boosting it by setting max-height to something large(100000px or so) see this bug.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...