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/svg/attribute/dur | |
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/svg/attribute/dur')
-rw-r--r-- | files/zh-cn/web/svg/attribute/dur/index.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/files/zh-cn/web/svg/attribute/dur/index.html b/files/zh-cn/web/svg/attribute/dur/index.html new file mode 100644 index 0000000000..8121bf4bfb --- /dev/null +++ b/files/zh-cn/web/svg/attribute/dur/index.html @@ -0,0 +1,52 @@ +--- +title: dur +slug: Web/SVG/Attribute/dur +tags: + - SVG + - SVG属性 + - 需要兼容性表 +translation_of: Web/SVG/Attribute/dur +--- +<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG属性参考主页</a></p> + +<p>该属性标识了动画的简单持续时间。</p> + +<h2 id="用法">用法</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="row">类别</th> + <td>动画定时属性</td> + </tr> + <tr> + <th scope="row">值</th> + <td><a href="/en/SVG/Content_type#Clock-value" title="en/SVG/Content_type#Clock-value"><clock-value></a> | <strong title="this is the default value">indefinite</strong></td> + </tr> + <tr> + <th scope="row">可变性</th> + <td>No</td> + </tr> + <tr> + <th scope="row">规范文档</th> + <td><a class="external" href="http://www.w3.org/TR/SVG/animate.html#DurAttribute" title="http://www.w3.org/TR/SVG/animate.html#DurAttribute">SVG 1.1 (2nd Edition)</a></td> + </tr> + </tbody> +</table> + +<dl> + <dt><a href="/en/SVG/Content_type#Clock-value" title="en/SVG/Content type#Clock-value"><clock-value></a></dt> + <dd>指定简单持续时间的时长。值必须大于0。可以用小时(h)、分钟(m)、秒(s)、毫秒(ms)表达这个值。可以组合这些时间表达式以提供一个复合的持续时间,比如这样:<code>hh:mm:ss.iii</code>或者这样:<code>mm:ss.iii</code>。</dd> +</dl> + +<p>如果一个动画元素不带有<code>dur</code>属性,简单持续时间就是无限期的。请注意:如果一个简单持续时间是无限期的,则插值不能起作用(虽然它对 {{ SVGElement("set") }} 元素依然是有用的)。</p> + +<h2 id="示例">示例</h2> + +<h2 id="元素">元素</h2> + +<p>下列元素可以使用<code>dur</code>属性:</p> + +<ul> + <li><a href="/en/SVG/Element#Animation" title="en/SVG/Element#Animation">动画元素</a> »</li> +</ul> |