框架标签

实现网页的分块:

 

左边的代码:

1 <html>
2     <head>
3         <title>left</title>
4     </head>
5     <body bgcolor="red">
6         <a href="http://www.baidu.com" target="Right">百度</a>
7     </body>
8 </html>

右边代码:

1 <html>
2     <head>
3         <title>right</title>
4     </head>
5     <body bgcolor="yellow" > 
6     
7     </body>
8 </html>

上面代码:

1 <html>
2     <head>
3         <title>top</title>
4     </head>
5     <body bgcolor="black">
6         i am top
7     </body>
8 </html>

承载页面:

<html>
    <head>
        <title>top</title>
    </head>
    <frameset rows="10%,*">
        <frame src="top.html" noresize="noresize"/>
        <frameset cols="30%,*">
            <frame src="Left.html" noresize="noresize"/>
            <frame src="Right.html" name="Right"/>
        </frameset>

    </frameset>
</html>

 

posted @ 2016-02-26 00:38  海一涛  阅读(177)  评论(0)    收藏  举报