From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/svg/attribute/attributename/index.html | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 files/zh-cn/web/svg/attribute/attributename/index.html (limited to 'files/zh-cn/web/svg/attribute/attributename') diff --git a/files/zh-cn/web/svg/attribute/attributename/index.html b/files/zh-cn/web/svg/attribute/attributename/index.html new file mode 100644 index 0000000000..0f7b065b02 --- /dev/null +++ b/files/zh-cn/web/svg/attribute/attributename/index.html @@ -0,0 +1,64 @@ +--- +title: attributeName +slug: Web/SVG/Attribute/attributeName +tags: + - SVG + - SVG属性 + - 需要兼容性表 +translation_of: Web/SVG/Attribute/attributeName +--- +

« SVG属性参考主页

+ +

该属性标识了在一个动画动作环节中,父元素的需要被改变的属性名。

+ +

用法

+ + + + + + + + + + + + + + + + + + + + +
类别动画属性目标属性
<attributeName>
可变性No
规范文档SVG 1.1 (2nd Edition)
+ +

示例

+ +

下面的示例使用了y作为attributeName,通过改变一个矩形在Y轴上的位置来变动这个矩形。

+ +
<?xml version="1.0"?>
+<svg width="250" height="250"
+  viewPort="0 0 250 250" version="1.1"
+  xmlns="http://www.w3.org/2000/svg">
+  <rect x="50" y="50" width="100" height="100">
+    <animate attributeType="XML"
+      attributeName="y"
+      from="0" to="50"
+      dur="5s"/>
+  </rect>
+</svg>
+ +

 

+ +

元素

+ +

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

+ + -- cgit v1.2.3-54-g00ecf