通过使用框架,你可以在同一个浏览器窗口中显示不止一个页面。每份HTML文档称为一个框架,并且每个框架都独立于其他的框架。
基础学习:http://www.w3school.com.cn/html/html_frames.asp
1.第一个页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>框架集frameset和框架frame</title>
</head>
<frameset cols="10%,*">
<frame src="menu.html" />
<frame src="UntitledFrame-2.html" name="RightFrame" />
</frameset><noframes></noframes>
<!--marquee标签滚动-->
<!--<marquee direction="up" behavior="scroll" scrollamount="5" scrolldelay="10">金琥是仙人球的另称</marquee>-->
</html>
2.其中的menu.html文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<a href="http://qq.com/" target="RightFrame">qq</a><br/>
<a href="http://baidu.com" target="RightFrame">百度</a><br/>
<a href="http://taobao.com" target="RightFrame">淘宝</a><br/>
<span><a href="http://qq.com" target="_parent">在父框架中打开qq</a></span><br/>
<span><a href="http://qq.com" target="_self">在父框架中打开qq</a></span><br/>
<span><a href="http://qq.com" target="_blank">在父框架中打开qq</a></span><br/>
<span><a href="http://qq.com" target="_top">在父框架中打开qq</a></span><br/>
</body>
</html>