aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/dompoint/z/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/dompoint/z/index.html')
-rw-r--r--files/zh-cn/web/api/dompoint/z/index.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/dompoint/z/index.html b/files/zh-cn/web/api/dompoint/z/index.html
new file mode 100644
index 0000000000..e813e18954
--- /dev/null
+++ b/files/zh-cn/web/api/dompoint/z/index.html
@@ -0,0 +1,45 @@
+---
+title: DOMPoint.z
+slug: Web/API/DOMPoint/z
+translation_of: Web/API/DOMPoint/z
+---
+<div>{{APIRef("DOM")}}</div>
+
+<p><span class="seoSummary"><code><strong>DOMPoint</strong></code> 的 <code><strong>z</strong></code> 属性表示该点的深度坐标。</span> <code>z</code> 值为 0 表示屏幕平面,正值表示从屏幕前面向靠近用户的方向延伸,负值表示从屏幕后面向远离用户的方向延伸,除非改变了默认的轴方向。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox">var <em>zPos</em> = <em>DOMPoint</em>.z;</pre>
+
+<h3 id="值">值</h3>
+
+<p>双精度浮点值,表示该点的 z 坐标值。这个值的类型并没有严格限制,意味着它可以是 {{jsxref("NaN")}} 或 {{jsxref("Infinity", "±Infinity")}}。</p>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('Geometry Interfaces', '#dom-dompoint-z', 'z')}}</td>
+ <td>{{Spec2('Geometry Interfaces')}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.DOMPointReadOnly.z")}}</p>
+
+<h2 id="相关链接">相关链接</h2>
+
+<ul>
+ <li>其他坐标属性:{{domxref("DOMPoint.x", "x")}}, {{domxref("DOMPoint.y", "y")}},透视值 {{domxref("DOMPoint.w", "w")}}。</li>
+</ul>