CSS

字体 | CSS Fonts

CSS Fonts

CSS字体CSS的一个模块,用于定义与字体相关的属性以及字体资源的加载方式。它允许您定义字体的样式,例如其族,大小和重量,线条高度以及多个单独字符可用的字形变体。

参照系

特性

  • font

  • font-family

  • font-feature-settings

  • font-kerning

  • font-language-override

  • font-size

  • font-size-adjust

  • font-stretch

  • font-style

  • font-synthesis

  • font-variant

  • font-variant-alternates

  • font-variant-caps

  • font-variant-east-asian

  • font-variant-ligatures

  • font-variant-numeric

  • font-variant-position

  • font-weight

  • line-height

规则

@font-face

  • font-family

  • font-feature-settings

  • font-style

  • font-variant

  • font-weight

  • font-stretch

  • src

  • unicode-range

@font-feature-values

指导

没有。

规范

SpecificationStatusComment
CSS Fonts Module Level 3Candidate Recommendation
CSS Level 2 (Revision 1)Recommendation
CSS Level 1RecommendationInitial definition

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support1.01.0 (1.0)3.03.51.0 (85)

FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support?????