aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/noframes/index.html
blob: 72b76948bd377e2060c3ac979db83cfbab0671a0 (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
---
title: <noframes>
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>