From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/svg/attribute/font-family/index.html | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 files/zh-cn/web/svg/attribute/font-family/index.html (limited to 'files/zh-cn/web/svg/attribute/font-family') diff --git a/files/zh-cn/web/svg/attribute/font-family/index.html b/files/zh-cn/web/svg/attribute/font-family/index.html new file mode 100644 index 0000000000..7fa86002d6 --- /dev/null +++ b/files/zh-cn/web/svg/attribute/font-family/index.html @@ -0,0 +1,49 @@ +--- +title: font-family +slug: Web/SVG/Attribute/font-family +tags: + - SVG属性 +translation_of: Web/SVG/Attribute/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样式表中,详见 {{ cssxref("font-family","CSS font-family") }} 。

+

使用上下文

+ + + + + + + + + + + + + + + + + + + +
分类Presentation attribute
[[<family-name> | <generic-family>],]* [<family-name> | <generic-family>] | inherit
可动画AnimatableYes
规范文档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)

+ +

另见

+ -- cgit v1.2.3-54-g00ecf