blob: 6afc2a7dddab6e0dbd967d16f007f1716bc1e3a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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>
|