MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

« SVG属性参考主页

该属性在用户坐标系统中标识了一个y轴坐标。本坐标的确切效果依赖于每个元素。大多数时候,它体现了引用元素的矩形区域的左上角的y轴坐标(请阅读每个元素的文档以了解例外情况)。

如果没有指定这个属性,效果相当于值被设置为0,除了<filter>元素以及<mask>元素;这两个元素的y默认值为-10%

用法

类别
<coordinate>
可变性 Yes
规范文档 SVG 1.1 (2nd Edition): altGlyph element
SVG 1.1 (2nd Edition): cursor element
SVG 1.1 (2nd Edition): fePointLight element
SVG 1.1 (2nd Edition): feSpotLight element
SVG 1.1 (2nd Edition): filter element
SVG 1.1 (2nd Edition): foreignObject element
SVG 1.1 (2nd Edition): glyphRef element
SVG 1.1 (2nd Edition): image element
SVG 1.1 (2nd Edition): pattern element
SVG 1.1 (2nd Edition): rect element
SVG 1.1 (2nd Edition): svg element
SVG 1.1 (2nd Edition): text element
SVG 1.1 (2nd Edition): use element
SVG 1.1 (2nd Edition): Filter primitive
SVG 1.1 (2nd Edition): mask element
SVG 1.1 (2nd Edition): tspan element

元素

下列元素可以使用y属性:

文档标签和贡献者

 此页面的贡献者: jiereal, fanxiaojie
 最后编辑者: jiereal,