0
我正在使用框架进行首次。这里是链接在底部框架中未正确打开
的index.html
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<frameset rows="20%,*">
<frame name="top" src="top.html" name="topmenu" />
<frame name="main" src="content.html" name="content" />
<noframes>
<body>
Your browser does not support frames.
</body>
</noframes>
</frameset>
</html>
的top.html
<html>
<head></head>
<body>
<div id="container">
<!-- begin navigation -->
<nav id="navigation">
<ul>
<li><a href="contact.html" target="content">Contact</a></li>
</ul>
</nav>
<!-- end navigation -->
</div>
</body>
</html>
content.html
<html>
<head></head>
<body>
Some Content
</body>
<html>
contact.html
<html>
<head></head>
<body>
Contact page
</body>
<html>
这样,输出是下
现在,当我点击联系链接上,而不是显示在content.html内容,它在新标签中打开,如下
我正在犯什么错误。我相信在我选择合适的目标时存在一些问题
请帮忙。
在此先感谢。