diff options
author | MDN <actions@users.noreply.github.com> | 2021-03-18 00:27:02 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-03-18 00:27:02 +0000 |
commit | d819be289bd9e57048301d9b2aa62f2dc27d11a4 (patch) | |
tree | e39cc3c8ba363563ed67d8061975ace79e70d6ba /files/zh-cn/web/api/svggeometryelement | |
parent | 57e0abae4196d5e89486fa87171e12dd14f78584 (diff) | |
download | translated-content-d819be289bd9e57048301d9b2aa62f2dc27d11a4.tar.gz translated-content-d819be289bd9e57048301d9b2aa62f2dc27d11a4.tar.bz2 translated-content-d819be289bd9e57048301d9b2aa62f2dc27d11a4.zip |
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web/api/svggeometryelement')
-rw-r--r-- | files/zh-cn/web/api/svggeometryelement/gettotallength/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/svggeometryelement/gettotallength/index.html b/files/zh-cn/web/api/svggeometryelement/gettotallength/index.html new file mode 100644 index 0000000000..c287e3975a --- /dev/null +++ b/files/zh-cn/web/api/svggeometryelement/gettotallength/index.html @@ -0,0 +1,51 @@ +--- +title: SVGPathElement.getTotalLength() +slug: Web/API/SVGGeometryElement/getTotalLength +translation_of: Web/API/SVGPathElement/getTotalLength +original_slug: Web/API/SVGPathElement/getTotalLength +--- +<div>{{APIRef("SVG")}}</div> + +<p><span class="seoSummary"> <code><strong>SVGPathElement.getTotalLength()</strong></code> </span>该方法返回用户代理对路径总长度(以用户单位为单位)的计算值。</p> + +<div class="note"> +<p>注意:在SVG 2中,该方法被移动到 {{DOMxRef("SVGGeometryElement")}} 接口,由 {{DOMxRef("SVGPathElement")}} 继承。</p> +</div> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox notranslate">float <var>someElement</var>.getTotalLength(); +</pre> + +<h3 id="返回值">返回值</h3> + +<p>指示路径总长度(以用户单位为单位)的浮点数。</p> + +<h2 id="规格">规格</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">规格</th> + <th scope="col">状态</th> + <th scope="col">注解</th> + </tr> + <tr> + <td>{{SpecName("SVG1.1", "paths.html#__svg__SVGPathElement__getTotalLength", "SVGPathElement.getTotalLength()")}}</td> + <td>{{Spec2("SVG1.1")}}</td> + <td>最初的定义</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div class="hidden">此页面上的兼容性表是由结构化数据生成的。 如果您想贡献数据,请查看 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 并向我们发送pull请求。</div> + +<p>{{Compat("api.SVGPathElement.getTotalLength")}}</p> + +<h2 id="另请参阅">另请参阅</h2> + +<ul> + <li>{{DOMxRef("SVGGeometryElement.getTotalLength()")}}</li> +</ul> |