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/html/element/noframes/index.html | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 files/zh-cn/web/html/element/noframes/index.html (limited to 'files/zh-cn/web/html/element/noframes') diff --git a/files/zh-cn/web/html/element/noframes/index.html b/files/zh-cn/web/html/element/noframes/index.html new file mode 100644 index 0000000000..72b76948bd --- /dev/null +++ b/files/zh-cn/web/html/element/noframes/index.html @@ -0,0 +1,33 @@ +--- +title: +slug: Web/HTML/Element/noframes +translation_of: Web/HTML/Element/noframes +--- +<h2 id="概述">概述</h2> + +<p><code>&lt;noframes&gt;</code> 是个 HTML 元素,用于支持不支持  {{HTMLElement("frame")}} 元素的浏览器,或者这样配置的浏览器。</p> + +<p>你可以在 <code>&lt;noframes&gt;</code> 中使用任何 HTML 元素,它预期可以在 {{HTMLElement("body")}} 中看到,除了 {{HTMLElement("frameset")}} 和 {{HTMLElement("frame")}} 元素。</p> + +<div class="note"><strong>注:</strong>由于所有主流浏览器都支持帧,这个元素一般不需要使用。它也在 HTML5 中完全过时,并且应该避免使用,来遵循标准。</div> + +<h2 id="属性">属性</h2> + +<p>就像其它 HTML 元素那样,这个元素支持 <a href="/en-US/HTML/Global_attributes" title="HTML/Global attributes">全局属性</a>。</p> + +<h2 id="示例">示例</h2> + +<pre class="brush:html">&lt;frameset cols="50%,50%"&gt; + &lt;frame src="https://developer.mozilla.org/en/HTML/Element/frameset" /&gt; + &lt;frame src="https://developer.mozilla.org/en/HTML/Element/frame" /&gt; + &lt;noframes&gt;&lt;p&gt;It seems your browser does not support frames or is not configured do so.&lt;/p&gt;&lt;/noframes&gt; +&lt;/frameset&gt;</pre> + +<h2 id="另见">另见</h2> + +<ul> + <li>{{HTMLElement("frameset")}}</li> + <li>{{HTMLElement("frame")}}</li> +</ul> + +<p>{{HTMLRef}}</p> -- cgit v1.2.3-54-g00ecf