On my last website, the text is perfect naturally on chrome and firefox without touching font-smoothing or anything else.
But on Mac / Safari 7 the text appears well then turns immediately thinner (too much thinner / not nice to read).
![enter image description here](https://i.stack.imgur.com/de7le.png)
做了一些研究后[cfhttp://www.usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/] http://www.usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/%5D
和一些测试
-webkit-font-smoothing
Safari 看起来首先显示文本:
-webkit-font-smoothing: subpixel-antialiased;
然后就在你得到闪烁效果之后,当它把字体变成:
-webkit-font-smoothing: antialiased;
所以在我看来我别无选择只能强迫
-webkit-font-smoothing: subpixel-antialiased;
使我的网站在所有浏览器上保持一致。
我使用的是 Avenir Std Roman 字体。
对 Safari 问题的一些解释?
还有更好的解决方案吗?
我的字体可能是问题的一部分吗?
Thanks.
所以我解决了申请的问题:
body {
-webkit-font-smoothing: subpixel-antialiased;
}
现在我的字体在每个浏览器上都是一致的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)