日期:2014-05-17  浏览次数:20507 次

html的框架frame和frameset

水平的框架
<html>
<frameset rows="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>
垂直的框架:
<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>
假如一个框架有可见边框,用户可以拖动边框来改变它的大小。
为了避免这种情况发生,可以在 <frame> 标签中加入:noresize="noresize"。
重要提示:不能将 <body></body> 标签与 <frameset></frameset> 标签同时使用!
不过,假如你添加包含一段文本的 <noframes> 标签,就必须将这段文字嵌套于 <body></body> 标签内。
(在下面的第一个实例中,可以查看它是如何实现的。)
<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">
<noframes>
<body>Your browser does not handle frames!</body>
</noframes>
</frameset>
</html>
混合框架的使用:
<html>
<frameset rows="50%,50%">
<frame src="/example/html/frame_a.html">
<frameset cols="25%,75%">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">
</frameset>
</frameset>
</html>
含有noresize的使用:
<html>
<frameset rows="50%,50%">
<frame noresize="noresize" src="/example/html/frame_a.html">
<frameset cols="25%,75%">
<frame noresize="noresize" src="/example/html/frame_b.html">
<frame? src="/example/html/frame_c.html">
</frameset>
</frameset>
</html>
单元格间距: cellspacing
单元格边距:cellpadding

表格属性:
<caption> 定义表格标题
<th>定义表格的表头
<thead>定义表格的页眉
<tbody>定义表格的主题
<tfoot>定义表格的页脚
<colgroup>定义表格列的组


?