所有浏览器都支持 <frame> 标签。
定义和用法
<frame> 标签定义 frameset 中的一个特定的窗口(框架)。
frameset中的每个框架都可以设置不同的属性,比如border、scrolling、noresize等等。
HTML 与 XHTML 之间的差异
在 HTML 中,<frame> 标签没有结束标签。
在 XHTML 中,<frame> 标签必须被正确地关闭。
提示:
注:如果您希望验证包含框架的页面,请确保 doctype 被设置为 "Frameset DTD"。阅读更多有关 DOCTYPE 的内容。
重要事项:您不能与 <frameset></frameset> 标签一起使用 <body></body> 标签。不过,如果您需要为不支持框架的浏览器添加一个 <noframes> 标签,请务必将此标签放置在 <body></body> 标签中!
实例
简单的三框架页面:
1 2 3 4 5 6 7 8 9 10 11 |
<html>
<frameset cols="25%,50%,25%">
<frame src="/example/html/frame_a.html"> <frame src="/example/html/frame_b.html"> <frame src="/example/html/frame_c.html">
</frameset>
</html> |
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h57489.shtml