<altglyph>
<altglyphdef>
<altglyphitem>
<glyph>
<glyphref>
<text>
<textpath>
<tref>
<tspan>
<feBlend>
<feColorMatrix>
<feComponentTransfer>
<feComposite>
<feConvolveMatrix>
<feDiffuseLighting>
<feDisplacementMap>
<feDistantLight>
<feFlood>
<feFuncA>
<feFuncB>
<feFuncG>
<feFuncR>
<feGaussianBlur>
<feImage>
<feMerge>
<feMergeNode>
<feMorphology>
<feOffset>
<fePointLight>
<feSpecularLighting>
<feSpotLight>
<feTile>
<feTurbulence>
<filter>
<font>
<font-face>
<font-face-format>
<font-face-name>
<font-face-src>
<font-face-uri>
<foreignObject>
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the 兼容性表格 at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
<altGlyph>
SVG element allows sophisticated selection of the glyphs used to render its child character data.
| 类别 | Text content element, Text content child element |
|---|---|
| 准许内容 | Any elements or character data |
x
This attribute defines the corresponding absolute x-coordinates for rendering the element.
Value type
:
<list-of-coordinates>
;
默认值
: Absolute x-coordinate of ancestor
<text>
or
<tspan>
;
Animatable
:
yes
y
This attribute defines the corresponding absolute y-coordinates for rendering the element.
Value type
:
<list-of-coordinates>
;
默认值
: Absolute y-coordinate of ancestor
<text>
or
<tspan>
;
Animatable
:
yes
dx
This attribute indicates a shift along the x-axis on the position of the element.
Value type
:
<list-of-coordinates>
;
默认值
: Relative x-coordinate of ancestor
<text>
or
<tspan>
;
Animatable
:
yes
dy
This attribute indicates a shift along the x-axis on the position of the element.
Value type
:
<list-of-coordinates>
;
默认值
: Relative y-coordinate of ancestor
<text>
or
<tspan>
;
Animatable
:
yes
rotate
This attribute defines the supplemental rotation that will be applied to the element. Value type : <list-of-numbers> ; 默认值 : none ; Animatable : yes (non-additive)
glyphRef
The glyph identifier, the format of which is dependent on the format defined by the
format
attribute of the given font.
Value type
:
<string>
;
默认值
:
none
;
Animatable
:
no
format
The format of the given font. Value type : <string > ; 默认值 : none ; Animatable : no
xlink:href
An
<iri>
reference either to a
<glyph>
element in an SVG document or to an
<altGlyphDef>
元素。
If the reference is to a
<glyph>
element and that glyph is available, then that glyph is rendered instead of the character(s) that are inside of the
<altGlyph>
元素。
If the reference is to an
<altGlyphDef>
element, then if an appropriate set of alternate glyphs is located from processing the
<altGlyphDef>
element, then those alternate glyphs are rendered instead of the character(s) that are inside of the
<altGlyph>
元素。
Value type
:
<iri
>
;
默认值
:
none
;
Animatable
:
no
class
,
style
Most notably:
requiredExtensions
,
systemLanguage
Global event attributes , Document element event attributes , Graphical event attributes
Most notably:
clip-path
,
clip-rule
,
color
,
color-interpolation
,
color-rendering
,
cursor
,
display
,
dominant-baseline
,
fill
,
fill-opacity
,
fill-rule
,
filter
,
mask
,
opacity
,
pointer-events
,
shape-rendering
,
stroke
,
stroke-dasharray
,
stroke-dashoffset
,
stroke-linecap
,
stroke-linejoin
,
stroke-miterlimit
,
stroke-opacity
,
stroke-width
,
text-anchor
,
transform
,
vector-effect
,
visibility
xlink:href
,
xlink:type
,
xlink:role
,
xlink:arcrole
,
xlink:title
,
xlink:show
,
xlink:actuate
This element implements the
SVGAltGlyphElement
接口。
| 规范 |
|---|
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
(SVG)
# AltGlyphElement |
BCD tables only load in the browser
最后修改: , 由 MDN 贡献者