-webkit-text-size-adjust是什么? [英] What does -webkit-text-size-adjust do?
问题描述
我想了解 -webkit-text-size-adjust:none;
的使用。
添加/删除不会影响我的字体大小在Android(chrome)或iOS(safari和chrome)。那么有什么用呢?
Adding/Removing that doesn't affect my font sizes on android (chrome) or iOS (safari and chrome). So what's the use?
推荐答案
-webkit-text-size-adjust
它指定如果您(作者)想要在浏览器页面缩放时调整文本大小。大多数时候最好将其设置为 auto
或 100%
,因为Web浏览器会处理
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.
注意:Mozilla开发者页面说它的非标准
Note : Mozilla devlopers page says its a non-standard
此文章将帮助您更多。
有趣的照片:开发人员使用 Twitter Bootstrap 可能有兴趣了解Bootstrap使用 -webkit-text- size-adjust:100%
开箱即用:来源链接
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
编辑
Android手机使用字体提升,因此<$ c $无论您设置了什么值,c> -webkit-text-size-adjust 都是 被忽略 。您可以通过将 max-height
设置为大的( 100000px
左右)来禁用字体提升=https://bugs.webkit.org/show_bug.cgi?id=FontBoosting =noreferrer>错误。
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.
这篇关于-webkit-text-size-adjust是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!