什么是-webkit-文字大小调整呢? [英] What does -webkit-text-size-adjust do?

查看:489
本文介绍了什么是-webkit-文字大小调整呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解使用 -webkit-文字大小调整:无;

添加/删除,但不影响在Android(铬)我的字体大小或iOS的(Safari和Chrome)。那么,有什么用?

解决方案

  -webkit-文字大小调整
 

据规定,如果你(作者)要的调整大小的文本时,浏览器页面被放大。大部分的时候,最好是将其设置为汽车的 100%作为Web浏览器会照顾怎么样文字大小调整是必须要做的。

注:Mozilla的devlopers页说,它的一个非标准

文章会帮助你。

有趣,注意:使用微博引导可能有兴趣知道,引导使用 -webkit-文字大小调整:100%开箱:的来源链接

修改

Chrome浏览器在Android手机上使用字体提升,所以 -webkit-文字大小调整 被忽略无论您所设置的值。您可以禁用字体由最大高度设置为一些大的推动它(<$ C C $> 100000px 左右)看到这个的错误

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?

解决方案

-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.

这篇关于什么是-webkit-文字大小调整呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆