首先主框架 demo.html
<html>
<frameset rows="50%,50%">
<frame src="top.html">
<frame src="main.html" name="main">
</frameset>
</html>
然后顶部导航 TOP.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Demo</title>
</head>
<body>
<a href="1.html" target="main">点击我一下</a>
<a href="2.html" target="main">点击我</a>
</body>