微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

css – Font-size <12px在Google Chrome中没有效果

css font-size< 12px的元素在Google Chrome中没有效果 - 仍为font-size 12像素。 我该怎么办? 我的Google Chrome浏览器使用认设置。我的版本是4.0.249.89。
我使用Windows XP。

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

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

不同浏览器的结果:

解决方法

请按照以下样式禁用自动调整。
* {
    -webkit-text-size-adjust: none;
}

原文地址:https://www.jb51.cc/css/220837.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。