<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>
ry
attribute defines a radius on the y-axis.
You can use this attribute with the following SVG elements:
<svg viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="50" cy="50" ry="0" rx="25" />
<ellipse cx="150" cy="50" ry="25" rx="25" />
<ellipse cx="250" cy="50" ry="50" rx="25" />
<rect x="20" y="120" width="60" height="60" ry="0" rx="15"/>
<rect x="120" y="120" width="60" height="60" ry="15" rx="15"/>
<rect x="220" y="120" width="60" height="60" ry="150" rx="15"/>
</svg>
For
<ellipse>
,
ry
defines the y-radius of the shape. With a value lower or equal to zero the ellipse won't be drawn at all.
| 值 |
<length>
|
<percentage>
|
auto
|
|---|---|
| 默认值 |
auto
|
| Animatable | Yes |
注意:
Starting with SVG2,
ry
是
Geometry Property
meaning this attribute can also be used as a CSS property for ellipses.
For
<rect>
,
ry
defines the y-axis radius of the ellipse used to round off the corners of the rectangle.
The way the value of the
ry
attribute is interpreted depend on both the
rx
attribute and the width of the rectangle:
ry
but not for
rx
(or the opposite), then the browser will consider the missing value equal to the defined one.
ry
nor
rx
has a properly specified value, then the browser will draw a rectangle with square corners.
ry
is greater than half of the width of the rectangle, then the browser will consider the value for
ry
as half of the width of the rectangle.
| 值 |
<length>
|
<percentage>
|
auto
|
|---|---|
| 默认值 |
auto
|
| Animatable | Yes |
注意:
Starting with SVG2,
ry
是
Geometry Property
meaning this attribute can also be used as a CSS property for rects.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Scalable Vector Graphics (SVG) 2
The definition of 'ry' in that specification. |
候选推荐 | Definition as a geometry property |
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'ry' in that specification. |
推荐 |
Initial definition for
<ellipse>
|
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'ry' in that specification. |
推荐 |
Initial definition for
<rect>
|
最后修改: , 由 MDN 贡献者