EN
此内容没有您的语言版本,但有英语版本。

text-anchor property

Aligns a string of text relative to the specified point.

This property is read/write.

Scalable Vector Graphics: Text, Section 10.9.1Internet Explorer 10

 

Syntax

text-anchor: start | middle | end | inherit

Property values

One of the following values:

start

The start of the text is aligned at the initial text position.

middle

The geometric middle of the text is aligned at the initial text position.

end

The end of the text is aligned at the initial text position.

inherit

Use the computed value of this property from an ancestor element.

CSS information

Applies Totext content elements
Mediavisual
Inherited1
Initial Valuestart

Standards information

Remarks

As of Internet Explorer for Windows 10 Technical Preview, this presentation attribute is animatable with CSS Animations and CSS Transitions.

Each text element has an initial current text position, defined as a point in the user coordinate system.

See also

CSSStyleDeclaration
SVGTextElement
SVGTextPathElement
SVGTextPositioningElement
SVGTSpanElement

 

 

显示:
© 2015 Microsoft