Font-size< 12px在Google Chrome中没有效果 [英] Font-size <12px doesn't have effect in Google Chrome

查看:156
本文介绍了Font-size< 12px在Google Chrome中没有效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

css font-size< 12px的元素在Google Chrome中没有效果 - 仍然是字体大小12像素。

Elements with css font-size <12px doesn't have effect in Google Chrome - remains font-size 12px.

我该怎么办?

我的Google Chrome浏览器使用默认设置。我的版本是4.0.249.89。
我使用的是Windows XP。

My Google Chrome browser uses default settings. My version is 4.0.249.89. I am using Windows XP.

您可以将以下代码粘贴到Google Chrome中进行测试:

You can paste the following code to your Google Chrome to test it:

<html>
<body>
<p style="font-size:6px;">test 6px</p>
<p style="font-size:7px;">test 7px</p>
<p style="font-size:8px;">test 8px</p>
<p style="font-size:9px;">test 9px</p>
<p style="font-size:10px;">test 10px</p>
<p style="font-size:11px;">test 11px</p>
<p style="font-size:12px;">test 12px</p>
<p style="font-size:13px;">test 13px</p>
<p style="font-size:14px;">test 14px</p>
<p style="font-size:15px;">test 15px</p>
<p style="font-size:16px;">test 16px</p>
</body>
</html>

来自不同浏览器的结果:

Results from different browser:

推荐答案

按照以下格式停用自动调整。

disable the auto adjustment by following style.

* {
    -webkit-text-size-adjust: none;
}

这篇关于Font-size&lt; 12px在Google Chrome中没有效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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