1.制作导航框架(注意"name='mainframe'")
<html>
<frameset cols="25%,75%">
<frame src="guide.html">
<frame src="Test.html" name="mainframe">
</frameset>
</html>
2.制作导航页面(注意target属性)
<html>
<body>
<a href="Test.html" target="mainframe">Frame a
</a></br>
<a href="Test1.html" target="mainframe">Frame b
</a></br>
<a href="Test2.html" target="mainframe">Frame c
</a></br>
</body>
</html>
3.frameset和body不可嵌套使用,并不是所有的浏览器都支持frameset
4.如果不想让框架拖动,在<frame> 标签内嵌入noresieze="noresize"
如:<frame noresieze="noresize">
转载于:https://www.cnblogs.com/919czzl/p/4684960.html