首先定义关于框架的页面index.html
<html>
<title>my page</title>
<frameset rows="15%,*" cols="*" frameborder="1" framespacing="1">
<frame src="top/top.html" name="top">
</frame>
<frameset cols="15%,*" rows="*" frameborder="1">
<frame src="left/left.html" name="left">
</frame>
<frame src="right/right.html" name="right"> <!--重点看这里-->
</frame>
</frameset>
</frameset>
<body>
框架实例
</body>
</html>
然后编写左边页面left.html的内容
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"></span><pre name="code" class="html"><html>
<body>
<table border="2" bordercolor="#c9c9c9" bgcolor="#f3f3f3">
<tr bordercolor="#0000FF">
<td><a href="http://www.codehut.space" target="right">wangrui</a></td> <!--重点看这里-->
</tr>
<tr>
<td><a href="http://www.codehut.space/about" target="right">about</a></td>
</tr>
</table>
</body>
</html>
总结就是给右边框架一个name属性,在定义左边框架中链接的时候用target属性来指向右边,比想象中的简单吧!