From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/window/scrollbars/index.html | 65 ++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 files/zh-cn/web/api/window/scrollbars/index.html (limited to 'files/zh-cn/web/api/window/scrollbars') 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 +--- +

{{ APIRef() }}

+ +

概要

+ +

返回可以检查其可见性的滚动条对象。

+ +

语法

+ +
objRef = window.scrollbars
+
+ +

示例

+ +

下面的HTML示例展示了如何使用window.scrollbars对象的visible 属性。

+ +
<!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>
+
+ +

规范

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'browsers.html#dom-window-scrollbars', 'Window.scrollbars')}}现行标准 
{{SpecName('HTML5 W3C', 'browsers.html#dom-window-scrollbars', 'Window.scrollbars')}}官方推荐 
+ +

参见

+ + -- cgit v1.2.3-54-g00ecf