本人初学网页制作,用HTML编了一个网页(包含IFRAME),另一个网页作为IFRAME网页,代码分别如下:
index.html代码如下:
<table border="1" width="1024" align=center id="table1" height="530">
<tr>
<td height="115">
<p align="center">
<img border="0" src="IMAGE/Preschool_title.jpg" width="580" height="72"></td>
</tr>
<tr>
<td><iframe id="left_subject" src="../subject_left.html" scrolling="no" width="220" height="1024"></iframe></td>
<td><iframe id="right_subject" width="800" height ="100%"></iframe></td>
</tr>
</table>subject_left.html代码如下:
<body>
<table cellpadding="0" cellspacing="0" background ="image\left_bg.jpg" bordercolor ="#ffffff" >
<tr>
<td id="abacus" align =left onclick= parent.right_subject.location.href="abacus.html" width="200" height="35"><font face="Comic Sans MS" color="#000000" size="3" >Abacus</font></td>
</tr>
</table>
</body>我的目的是点击ABACUS的单元格时,右边叫right_subject的IFRAME能打开同目录中的abacus.html,但打开index.html点击单元格后,右边IFRAME中总显示找不到网页,请教问题出在哪里?
index.html代码如下:
<table border="1" width="1024" align=center id="table1" height="530">
<tr>
<td height="115">
<p align="center">
<img border="0" src="IMAGE/Preschool_title.jpg" width="580" height="72"></td>
</tr>
<tr>
<td><iframe id="left_subject" src="../subject_left.html" scrolling="no" width="220" height="1024"></iframe></td>
<td><iframe id="right_subject" width="800" height ="100%"></iframe></td>
</tr>
</table>subject_left.html代码如下:
<body>
<table cellpadding="0" cellspacing="0" background ="image\left_bg.jpg" bordercolor ="#ffffff" >
<tr>
<td id="abacus" align =left onclick= parent.right_subject.location.href="abacus.html" width="200" height="35"><font face="Comic Sans MS" color="#000000" size="3" >Abacus</font></td>
</tr>
</table>
</body>我的目的是点击ABACUS的单元格时,右边叫right_subject的IFRAME能打开同目录中的abacus.html,但打开index.html点击单元格后,右边IFRAME中总显示找不到网页,请教问题出在哪里?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货