我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

« SVG Attribute reference home

The alignment-baseline attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. For example, this allows alphabetic baselines in Roman text to stay aligned across font size changes. It defaults to the baseline with the same name as the computed value of the alignment-baseline property.

As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css alignment-baseline for further information.

Usage context

Categories Presentation attribute
Value auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | inherit
Animatable Yes
Normative document SVG 1.1 (2nd Edition)



The following elements can use the alignment-baseline attribute

For object alignment in other elements (such as <text>), see dominant-baseline.

See also


 此頁面的貢獻者: MaxArt, Jeremie
 最近更新: MaxArt,