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/window/scrollbars | |
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/window/scrollbars')
-rw-r--r-- | files/zh-cn/web/api/window/scrollbars/index.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/window/scrollbars/index.html b/files/zh-cn/web/api/window/scrollbars/index.html new file mode 100644 index 0000000000..6afc2a7ddd --- /dev/null +++ b/files/zh-cn/web/api/window/scrollbars/index.html @@ -0,0 +1,65 @@ +--- +title: Window.scrollbars +slug: Web/API/Window/scrollbars +translation_of: Web/API/Window/scrollbars +--- +<p>{{ APIRef() }}</p> + +<h3 id="概要">概要</h3> + +<p>返回可以检查其可见性的滚动条对象。</p> + +<h3 id="语法">语法</h3> + +<pre class="eval"><var>objRef</var> = window.scrollbars +</pre> + +<h3 id="示例">示例</h3> + +<p>下面的HTML示例展示了如何使用window.scrollbars对象的visible 属性。</p> + +<pre><!doctype html> +<html> +<head> + <title>Various DOM Tests</title> + <script> + var visibleScrollbars = window.scrollbars.visible; + </script> +</head> +<body> + <p>Various DOM Tests</p> +</body> +</html> +</pre> + +<h3 id="规范">规范</h3> + +<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('HTML WHATWG', 'browsers.html#dom-window-scrollbars', 'Window.scrollbars')}}</td> + <td>现行标准</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-window-scrollbars', 'Window.scrollbars')}}</td> + <td>官方推荐</td> + <td> </td> + </tr> + </tbody> +</table> + +<h3 id="参见">参见</h3> + +<ul> + <li><a href="/en/DOM/window.locationbar">window.locationbar</a></li> + <li><a href="/en/DOM/window.menubar">window.menubar</a></li> + <li><a href="/en/DOM/window.personalbar">window.personalbar</a></li> + <li><a href="/en/DOM/window.statusbar">window.statusbar</a></li> + <li><a href="/en/DOM/window.toolbar">window.toolbar</a></li> +</ul> |