非标准
该特性是非标准的,请尽量不要在生产环境中使用它!
概述
font-smooth
CSS 属性用来控制字体的渲染效果。
- 初始值:
auto
- Applies to: all elements and generated content
- 是否是继承属性: Yes
- Percentages: relative to parent element's font size
- Media:
visual
- 计算值: as specified
Note: Webkit implements something similar with a different name:
-webkit-font-smoothing
and different values: none
, antialiased
and subpixel-antialiased
. However, just like font-smooth
, this is non-standard and should not be used.语法
font-smooth: auto | never | always | [ <absolute size> || <length> ]
规范
Though present in early (2002) drafts of CSS3 Fonts, font-smooth
has been removed from this specification and is currently not on the standard track.
浏览器兼容性
Feature | Firefox (Gecko) | Chrome | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 未实现 | 未实现 (see note) | 未实现 | 未实现 | 未实现(see note) |
Feature | iOS Safari | Opera Mini | Opera Mobile | Android Browser |
---|---|---|---|---|
Basic support | 未实现 | 未实现 | 未实现 | 未实现 |