【发布时间】:2013-07-25 21:50:35
【问题描述】:
即使我添加了特定于谷歌浏览器的代码,谷歌浏览器也没有对我的文本进行抗锯齿处理。
奇怪的是,据说 Firefox 与我添加的代码不兼容确实对文本进行了适当的抗锯齿处理。
这是具体的 CSS 样式:
.jumbotron h1 {
color: white;
font-size: 100px;
text-align: center;
line-height: 1;
/*
* Webkit only supported by Chrome and Safari.
*/
-webkit-font-smoothing: antialiased;
}
铬:
火狐:
正如您在上面看到的(以及可能在网站上),字体在 Firefox 上看起来更好。
【问题讨论】:
-
我也觉得不错
-
注意:这已经在这里讨论过:stackoverflow.com/q/11487427/1114320 有趣的是,这似乎只发生在 Google 浏览器中的 Google Webfonts 上。奇怪...
-
我发表了一篇博文,包括。修复:How to fix the ugly font rendering in Google Chrome
标签: html css google-chrome firefox