翻译正在进行中。

概要

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

语法

objRef = window.scrollbars 

示例

The following complete HTML example shows how the visible property of the scrollbars object is used.

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

规范

Specification Status Comment
HTML Living Standard
Window.scrollbars
Living Standard  
HTML5
Window.scrollbars
Recommendation  

See also:

文档标签和贡献者

 此页面的贡献者: leo19920823
 最后编辑者: leo19920823,