Frameset标签

Frameset标签不能在body中设置。

<!DOCTYPE html>
<html>
    <head>
        <title>框架标签</title>
    </head>
    <!--cols表示让这个框架基于横向的方式切分,
    (150,*,150)第一个150表示第一个框架的大小是150
    *表示剩余的部分都是中间的框架
    第二个150表示右边的框架是150
    rows表示基于上中下来布局
    -->
    <!--如果设置了rows和cols,会进行平均切分-->
    <frameset rows="80,*,80" frameborder="1">
    <!--在rows或者cols中分成几部分,就需要多少个frame
    150,*,150分成的三部分,所以需要三个frame-->
        <frame src="01.html" noresize />
        <frame src="07.html" />
        <frame src="02.html" noresize />
    </frameset>
</html>

效果:

 

<!DOCTYPE html>
<html>
    <head>
        <title>框架标签</title>
    </head>
    <frameset rows="90,*,90" frameborder="1">
        <frame src="07.html"></frame>
        <frameset cols="150,*">
            <frame src="03.html"></frame>
            <!--在连接的时候增加属性target="content"-->
            <frame src="06.html" name="content"></frame>
        </frameset>
        <frame src="02.html"></frame>
    </frameset>
</html>

效果:

 

posted on 2013-10-21 23:13  Allen Blue  阅读(193)  评论(0编辑  收藏  举报

导航