HTML <noframes> 标签 HTML5 不支持
主题:HTML5 标签参考上一页|下一页
说明
<noframes> 标签指定仅应由不支持框架或配置为不显示框架的浏览器显示的后备内容。 它可以包含所有可以放置在普通 HTML 页面的 <body> 元素中的 HTML 元素。
下表总结了此标签的使用上下文和版本历史。
| Placement: | 块 |
|---|---|
| Content: | <body>(在 中使用时 <frameset>)、块、内联和文本 |
| 开始/结束标签: | 开始标签: required, 结束标签:required |
| 版本: | HTML 4, 4.01 (frameset) |
警告: <frameset>、<frame> 和 <noframes> 元素已在 HTML5 中删除,不应再使用。 您应该改用 HTML <iframe>。
语法
<noframes> 标签的基本语法如下:
HTML / XHTML: <noframes> ... </noframes>
下面的示例显示了 <noframes> 标签的作用。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>This is a frameset document.</title>
</head>
<frameset>
<frame src="sample-a.html" name="frame-a">
<frame src="sample-b.html" name="frame-b">
<noframes>
<p>Here is the <a href="noframes.html">non-frame based version of the document.</a></p>
</noframes>
</frameset>
</html>
标签特定属性
<noframes> 标签没有任何特定属性。
浏览器兼容性
所有主要的现代浏览器都支持 <noframes> 标签。
基本支持—
|
进一步阅读
请参阅以下教程: HTML Iframes.
相关标签: <frameset>, <frame>, <iframe>.
Advertisements
