diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/svganimationelement/targetelement | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/svganimationelement/targetelement')
-rw-r--r-- | files/zh-cn/web/api/svganimationelement/targetelement/index.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/svganimationelement/targetelement/index.html b/files/zh-cn/web/api/svganimationelement/targetelement/index.html new file mode 100644 index 0000000000..fd722f4005 --- /dev/null +++ b/files/zh-cn/web/api/svganimationelement/targetelement/index.html @@ -0,0 +1,43 @@ +--- +title: targetElement +slug: Web/API/SVGAnimationElement/targetElement +translation_of: Web/API/SVGAnimationElement/targetElement +--- +<div>{{APIRef("SVG")}}</div> + +<p><code><strong>SVGAnimationElement.targetElement</strong></code>属性是指完成动画的元素。如果没有目标元素在执行动画(例如:因为 {{SVGAttr("href")}}属性指定了一个未知的元素 ),这个值将返回<code>null</code>。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox">var <var>targetElement</var> = <var>someElement</var>.targetElement; +</pre> + +<h2 id="技术规范">技术规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <td>技术规范</td> + <td>状态</td> + <td>注释</td> + </tr> + <tr> + <td>{{SpecName("SVG Animations 2", "#__svg__SVGAnimationElement__targetElement", "SVGAnimationElement.targetElement")}}</td> + <td>{{Spec2("SVG Animations 2")}}</td> + <td> + <p>添加<code>null</code>作为没有目标元素执行动画时的返回值。</p> + </td> + </tr> + <tr> + <td>{{SpecName("SVG1.1", "animate.html#__svg__SVGAnimationElement__targetElement", "SVGAnimationElement.targetElement")}}</td> + <td>{{Spec2("SVG1.1")}}</td> + <td>初始定义</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + + + +<p>{{Compat("api.SVGAnimationElement.targetElement")}}</p> |