HTML中Frameset标签的使用

1.首先创建frameset.html,代码如下

HTML中Frameset标签的使用

注意:frame标签的属性name将用于其他页面的显示位置

2.接着是1.html

  

target属性有四个

_blank:新窗口

_self:本窗口

_parent:父窗口

_top: 整个浏览器窗口

或在target值中直接写框架中name对应的名字


在这里我们用的是最后一个

HTML中Frameset标签的使用

3.接着是2.html

HTML中Frameset标签的使用

4.我们来看一看效果

HTML中Frameset标签的使用

5.接下来我们实现点击右边的链接在左边显示目标一面,0.html和3.html

0.html

HTML中Frameset标签的使用

3.html


HTML中Frameset标签的使用

6.最后看一看效果

HTML中Frameset标签的使用

HTML中Frameset标签的使用

OK!完成