diff options
author | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:56:40 +0100 |
---|---|---|
committer | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:56:40 +0100 |
commit | 310fd066e91f454b990372ffa30e803cc8120975 (patch) | |
tree | d5d900deb656a5da18e0b60d00f0db73f3a2e88e /files/zh-cn/web/api/document/mozfullscreen/index.html | |
parent | 8260a606c143e6b55a467edf017a56bdcd6cba7e (diff) | |
download | translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.gz translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.bz2 translated-content-310fd066e91f454b990372ffa30e803cc8120975.zip |
unslug zh-cn: move
Diffstat (limited to 'files/zh-cn/web/api/document/mozfullscreen/index.html')
-rw-r--r-- | files/zh-cn/web/api/document/mozfullscreen/index.html | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/files/zh-cn/web/api/document/mozfullscreen/index.html b/files/zh-cn/web/api/document/mozfullscreen/index.html deleted file mode 100644 index eb15adcede..0000000000 --- a/files/zh-cn/web/api/document/mozfullscreen/index.html +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: document.mozFullScreen -slug: Web/API/Document/mozFullScreen -translation_of: Web/API/Document/fullscreen ---- -<p> </p> - -<p>{{APIRef("Fullscreen API")}}{{Deprecated_Header}}</p> - -<p>过时的{{domxref("Document")}}接口的 <strong><code>fullscreen</code></strong> 只读属性报告文档当前是否以全屏模式显示内容。</p> - -<p>虽然这个属性是只读的,但如果修改它,它不会抛出(即使在严格模式下);setter是一个非操作,它将被忽略。</p> - -<div class="note"> -<p><strong>注意</strong><strong>:</strong> 由于不推荐使用此属性,您可以通过检查{{DOMxRef("document.fullscreenelement")}}是否为<strong><code>null</code></strong>来确定文档上是否启用全屏模式。</p> -</div> - -<p> </p> - -<h3 id="Summary" name="Summary">概述</h3> - -<p>返回一个布尔值,表明当前文档是否处于全屏模式.</p> - -<h3 id="Syntax" name="Syntax">语法</h3> - -<pre class="eval"><em>var isFullScreen</em> = <em>document</em>.mozFullScreen || document.webkitIsFullScreen; -</pre> - -<h3 id="Example" name="Example">例子</h3> - -<pre class="brush: js">function isDocumentInFullScreenMode() { - // 过去由F11触发的那种浏览器全屏模式和HTML5中内容的全屏模式是不一样的 - return (document.fullscreenElement && document.fullscreenElement !== null) || - (!document.mozFullScreen && !document.webkitIsFullScreen); -} -</pre> - -<h3 id="备注">备注</h3> - -<p>查看<a href="/zh-cn/docs/Web/API/Fullscreen_API" title="/zh-cn/docs/Web/API/Fullscreen_API">使用全屏模式</a>来了解更多相关内容.</p> - -<h3 id="Specification" name="Specification">浏览器兼容性</h3> - -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatGeckoDesktop("9.0") }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatGeckoMobile("9.0") }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> - -<h3 id="Specification" name="Specification">规范</h3> - -<p>不属于任何公开的规范</p> - -<h3 id="相关链接">相关链接</h3> - -<ul> - <li><a href="/zh-cn/DOM/Using_full-screen_mode" title="zh-cn/DOM/Using full-screen mode">Using full-screen mode</a></li> - <li>{{ domxref("element.mozRequestFullScreen()") }}</li> - <li>{{ domxref("document.mozCancelFullScreen()") }}</li> - <li>{{ domxref("document.mozFullScreenElement") }}</li> - <li>{{ domxref("document.mozFullScreenEnabled") }}</li> - <li>{{ cssxref(":-moz-full-screen") }}</li> - <li>{{ HTMLAttrXRef("mozallowfullscreen", "iframe") }}</li> -</ul> - -<p>{{ languages( {"en": "en/DOM/document.mozFullScreen" } ) }}</p> |