【发布时间】:2016-09-14 14:39:21
【问题描述】:
我的网页有 2 个水平的<frame>s。第二个<frameset> 分为2 列<frameset>。
现在,当我单击第一个<frame> 的外部链接时,它应该将页面加载到第二列的<frame>。
我已经命名了两个框架,并在 href 上添加了目的地。
查看示例页面:
index.html
<!DOCTYPE html>
<html>
<frameset rows="25%,*">
<frame src="title.html">
<frame src="frames.html">
</frameset>
</html>
title.html
<!DOCTYPE html>
<html>
<marquee>
<b>
Welcome
</b>
</marquee>
</html>
frames.html
<!DOCTYPE html>
<html>
<frameset cols="15%,*">
<frame src="menu.html" name="menu_page">
<frame name="main_page">
</frameset>
</html>
menu.html
<!DOCTYPE html>
<html>
<a href="http://www.google.com" target="main_page">Google</a>
<br /><br />
<a href="http://www.microsoft.com" target="main_page">Microsoft</a>
<br /><br />
</html>
【问题讨论】:
标签: html hyperlink frame frameset