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

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;

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2021-07-11
  • 2022-12-23
  • 2021-08-06
  • 2022-02-07
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-01-03
  • 2021-05-10
相关资源
相似解决方案