代码如下:
default.aspx
<table cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<tr>
<td width='186'align='left'>
<iframe style="height: 100%; width: 180px;" src="left/Left.aspx" frameborder="0">
</iframe>
</td>
<td align='right' height="493">
<iframe style="width: 100%; height: 100%" src="Main.aspx" frameborder="0" >
</iframe>
</td>
</tr>
</table>Left.aspx
<table width=186 border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><uc1:Top ID="Notice" runat="server" /> </td>
</tr>
</table>直接运行Left的时候可以显示,但是运行Default的时候Left的信息怎么也不显示。
default.aspx
<table cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<tr>
<td width='186'align='left'>
<iframe style="height: 100%; width: 180px;" src="left/Left.aspx" frameborder="0">
</iframe>
</td>
<td align='right' height="493">
<iframe style="width: 100%; height: 100%" src="Main.aspx" frameborder="0" >
</iframe>
</td>
</tr>
</table>Left.aspx
<table width=186 border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><uc1:Top ID="Notice" runat="server" /> </td>
</tr>
</table>直接运行Left的时候可以显示,但是运行Default的时候Left的信息怎么也不显示。
<tr>
<td width='186'align='left' valign="top">
<iframe style="height: 100px; width: 180px;" src="left/Left.aspx" frameborder="0">
</iframe>
</td>
<td align='right' height="493">
<iframe style="width: 100%; height: 100%" src="Main.aspx" frameborder="0" >
</iframe>
</td>
</tr>
</table> 将height改成具体的数量!!试试
<td align='right' height="493">
<iframe style="width: 100%; height: 100%" src="Main.aspx" frameborder="0" >
</iframe>
</td>
这里td没设width,而iframe的width 是100%,导致覆盖了left的。