Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

font-family

这篇翻译不完整。请帮忙从英语翻译这篇文章

« SVG Attribute reference home

font-family 属性(attribute) 指出哪个字体集将被用来渲染文字, 在带优先级的字体集名称列表被指定,还有或没有泛指的字符集名称。(specified as a prioritized list of font family names and/or generic family names)。

作为一个表现层的属性,font-family属性也可以被直接用在CSS样式表中,详见 css font-family

使用上下文

分类 Presentation attribute
[[<family-name> | <generic-family>],]* [<family-name> | <generic-family>] | inherit
可动画Animatable Yes
规范文档 SVG 1.1 (2nd Edition)

例子

css

p.class1{font-family:"Times New Roman",Times,serif;}
p.class2{font-family:Arial,Helvetica;}

html

<p class="class1">This is a paragraph, shown in the Times New Roman font.</p>
<p class="class2">This is a paragraph, shown in the Arial font.</p>

元素

以下元素可以使用font-family 属性(attribute)

另见

文档标签和贡献者

标签: 
 此页面的贡献者: charlie
 最后编辑者: charlie,