aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/menubar/index.html
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/window/menubar/index.html
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/window/menubar/index.html')
-rw-r--r--files/zh-cn/web/api/window/menubar/index.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/window/menubar/index.html b/files/zh-cn/web/api/window/menubar/index.html
new file mode 100644
index 0000000000..bfd99a1da9
--- /dev/null
+++ b/files/zh-cn/web/api/window/menubar/index.html
@@ -0,0 +1,57 @@
+---
+title: Window.menubar
+slug: Web/API/Window/menubar
+translation_of: Web/API/Window/menubar
+---
+<p>{{ APIRef() }}</p>
+
+<h2 id="概要">概要</h2>
+
+<p>返回一个可以检测visibility属性的 <code>menubar</code> 对象。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="eval"><var>objRef</var> = window.menubar
+</pre>
+
+<h2 id="示例">示例</h2>
+
+<p>以下完整的HTML示例显示了使用locationbar对象的visible属性的方式。</p>
+
+<pre class="brush:html">&lt;html&gt;
+&lt;head&gt;
+ &lt;title&gt;Various DOM Tests&lt;/title&gt;
+ &lt;script&gt;
+ var visible = window.menubar.visible;
+ &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+ &lt;p&gt;Various DOM Tests&lt;/p&gt;
+&lt;/body&gt;
+&lt;/html&gt;</pre>
+
+<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('HTML WHATWG', 'browsers.html#dom-window-menubar', 'Window.menubar')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-window-menubar', 'Window.menubar')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="相关链接">相关链接:</h2>
+
+<p><a href="/en/DOM/window.locationbar">window.locationbar</a>, <a href="/en/DOM/window.personalbar">window.personalbar</a>, <a href="/en/DOM/window.scrollbars">window.scrollbars</a>, <a href="/en/DOM/window.statusbar">window.statusbar</a>, <a href="/en/DOM/window.toolbar">window.toolbar</a></p>