-webkit-font-smoothing

针对图标字体进行抗锯齿渲染。

font-smoothing是非标准的CSS定义。它被列入标准规范的草案中,后由于某些原因从web标准中被移除了。

使用:

body,html{

-webkit-font-smoothing: antialiased;
/*chrome、safari*/ -moz-osx-font-smoothing: grayscale;/*firefox*/

}

(1)Webkit在自己的引擎中支持了这一效果。

-webkit-font-smoothing

它有三个属性值:

none ------ 对低像素的文本比较好

subpixel-antialiased------默认值

antialiased ------抗锯齿很好 

(2)Gecko也推出了自己的抗锯齿效果的非标定义。

-moz-osx-font-smoothing: inherit | grayscale;

这个属性也是更清晰的作用。

原文地址:https://www.cnblogs.com/wang715100018066/p/7865636.html