string
已废弃 SVG 2
该特性已经从 Web 标准中删除,虽然一些浏览器目前仍然支持它,但也许会在未来的某个时间停止支持,请尽量不要使用该特性。
The string
attribute is a hint to the user agent, and specifies a list of formats that the font referenced by the parent <font-face-uri>
element supports.
Only one element is using this attribute: <font-face-format>
Usage notes
Value | <anything> |
---|---|
Default value | None |
Animatable | No |
<anything>
-
This value specifies a list of formats that are supported by the font referenced by the parent
<font-face-uri>
element.The available types are:
"woff"
,"woff2"
,"truetype"
,"opentype"
,"embedded-opentype"
, and"svg"
. See thesrc
descriptor of the@font-face
at-rule for more information.
Specifications
Specification | Status | Comment |
---|---|---|
Scalable Vector Graphics (SVG) 1.1 (Second Edition) string |
Recommendation | Initial definition |
Browser compatibility
BCD tables only load in the browser