您的位置:首页 > 其它

frameset,frame标签初始用

2014-12-19 13:44 197 查看
frameset标签使用思路:

1.先给frameset 标签设置行分割(rows)或者按列分割(cols)

比如<frameset rows="150,*">
</frameset>row的两个参数是指将整块页面分成两行,就像以下这样,同理按列分割(cols)也是一样的。
<frameset rows="100,*">
<frame src="yellow.html"/>
<frame src="green.html"/>
</frameset>



2.也可以在frameset内嵌套frameset,要注意的是不要忘了在嵌套的框架中加上分割的参数比例

<frameset rows="100,*">
<frame name="top" src="yellow.html"/>
<frameset name="bottom" cols="400,*">
<frame name="green" src="green.html"/>
<frame name="blue" src="blue.html"/>
</frameset>
</frameset>效果图



3.如果不希望看到frameset的边框,可以设置属性让边框消失

<frameset rows="100,*" framespacing="0" frameborder="0" border="0" >
<frame name="top" src="yellow.html" />
<frameset name="bottom" cols="400,*">
<frame name="green" src="green.html"/>
<frame name="blue" src="blue.html"/>
</frameset>
</frameset>



更多内容可以看以下这篇文章
http://blog.csdn.net/czk_love_wyq/article/details/42026887
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: