<frameset></frameset>
属性:
rows:行
cols:列
border:边框
frameborder:是否有边框,值:1,0,yes,no
<frame>
属性:
src:资源位置
name:名称,targe定位是需要设置
scrolling:是否有滚动条
noresize:是否允许用户用鼠标调大小
<a href="" ></a>target属性:
_blank:空白页
_top:最顶层窗口
_self:当前窗口,缺省值
_parent:直接父窗口
<iframe></iframe>可以实现画中画效果,不需要放在<frameset>中,属性与
<frame>相同
<!--
index.html
-->
<html>
<frameset rows="20%,*">
<frame src="top.html"></frame>
<frameset cols="30%,*">
<frame src="left.html"></frame>
<frame src="right1.html" name=right></frame>
</frameset>
</frameset>
</html>
<!--
left.html
-->
<a href=right1.html target=right>右边第一个网页</a><br>
<a href=right2.html target=right>右边第二个网页</a><br>
<!--
right1.html
-->
<font size=20 color=red>First</font>
<!--
right2.html
-->
<font size=20 color=red>Second</font>
<!--
top.html
-->
<font size=30 color=green>这是顶部网页文件</font>
本文详细介绍了HTML中的框架集(frameset)及iframe元素的使用方法,包括rows、cols等属性的设置,以及如何通过target属性实现不同窗口间的链接跳转。同时,还提供了具体的代码示例。
1128

被折叠的 条评论
为什么被折叠?



