我在使用 Safari 和 OpenSans 时遇到了一些问题。字体真的看起来光栅化了。经过一些研究,我发现部分问题可以通过以下方式解决:
* {
-webkit-font-smoothing: subpixel-antialiased;
}
但这还不够,如下面的屏幕截图所示。我尝试应用一些文本阴影甚至 -webkit-text-stroke,但结果在其他浏览器上会变差。
实际结果:https://waaave.com/tutorial/php/playing-with-the-instagram-api-authentication/
最佳答案
这个 css 应该可以工作:
img {
image-rendering: optimizeSpeed; /* GIVE ME SPEED */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
image-rendering: optimize-contrast; /* CSS3 Proposed */
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
}
关于html - 禁用抗锯齿 Safari,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19817388/