我曾经在两个 webkit 浏览器(Chrome 和 Safari)中有相同的输出,但突然(我不知道我可以改变什么)在 Chrome 中的渲染看起来很糟糕。
这是我的html
<li class="cat-item term term-workshops"><a href="/workshops">Workshops</a></li>
这是我的CSS
.term a {
display:inline-block;
height:1em;
-webkit-font-smoothing:antialiased;
-moz-font-smoothing:antialiased;
font-smoothing:antialiased;
text-rendering:optimizeLegibility;
font-smooth:always;
}
.term-workshops a {
text-transform:lowercase;
font-family:"Custom-Family", sans-serif;
font-size:1.4em;
margin-top:.1em;
}
Safari 中的输出看起来不错(以前在 Chrome 中看起来一样)
Chrome 中的输出突然变得糟糕
知道为什么这会在两个 webkit 浏览器中产生差异吗?
我知道它在 Firefox 中看起来很糟糕,因为没有 font-smoothing
选项,但如果可能的话,它在 Chrome 和 Safari 中看起来应该是一样的。
我可以在我的 css 中更改什么,使输出看起来突然不同?我知道它在两种浏览器中看起来都一样!
最佳答案
https://productforums.google.com/forum/?fromgroups=#!topic/chrome/0vqp1bnkaoE
-webkit-font-smoothing no longer works. Google Chrome team intentionally changed this behavior. Seems font-smoothing wasn't applied "properly" on OSX in previous versions.
关于css - webkit 字体平滑 : suddenly different results in chrome and safari,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12646592/