aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/visualviewport/offsettop
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/visualviewport/offsettop
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/visualviewport/offsettop')
-rw-r--r--files/zh-cn/web/api/visualviewport/offsettop/index.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/visualviewport/offsettop/index.html b/files/zh-cn/web/api/visualviewport/offsettop/index.html
new file mode 100644
index 0000000000..35202bd69e
--- /dev/null
+++ b/files/zh-cn/web/api/visualviewport/offsettop/index.html
@@ -0,0 +1,42 @@
+---
+title: VisualViewport.offsetTop
+slug: Web/API/VisualViewport/offsetTop
+tags:
+ - API
+ - offsetTop
+translation_of: Web/API/VisualViewport/offsetTop
+---
+<p>{{SeeCompatTable}}{{APIRef("Visual Viewport")}}</p>
+
+<p>{{domxref("VisualViewport")}} 接口的只读属性 <strong><code>offsetTop</code></strong> 返回视觉视口的顶部相对于布局视口的顶部的偏移量,以CSS像素为单位。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox">var <em>offsetTop</em> = VisualViewport.offsetTop</pre>
+
+<h3 id="值">值</h3>
+
+<p>一个双精度值。</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('Visual Viewport','#dom-visualviewport-offsettop','offsetTop')}}</td>
+ <td>{{Spec2('Visual Viewport')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.VisualViewport.offsetTop")}}</p>