frameset,frame标签初始用

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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值