涉及四个页面,上和左边显示正常,但右边页面却跑到了下面。将主要的代码贴出来请看看是怎么回事呢?
index_admin.jsp<body topmargin=0 >
<jsp:include page="topadmin.jsp" flush="true"/>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="440" valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0">
      <tr>
          <td><jsp:include page="leftadmin.jsp"  flush="true"/></td>
      </tr>
    </table></td>
    <td colspan=2 valign="top"  width="100%">
       <IFRAME frameBorder=0 name=right src="mainadmin.jsp" style="HEIGHT: 400; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME>
  </td>
  </tr>
</table>
</body>
第二个文件 topadmin.jsp
<body topmargin="0" leftmargin="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="../img/top.gif"  height="100" /></td>
  </tr>
</table>
</body>第三个文件 leftadmin.jsp
<body  leftmargin="0"  topmargin="0">
<span class="STYLE3">
<%
String username=(String)session.getAttribute("admin_username");
%><table width="200" border="0" cellpadding="0" cellspacing="0" >
  <tr height=31>
<td align=center bgcolor="FFFFFF">
&nbsp;&nbsp;欢迎</span><span class="STYLE2"><%=username%></span>进入...</td>
  </tr>
<table
<table width="200" border="0" cellpadding="0" cellspacing="1" bgcolor=#A7A7A7>
  <tr height=31>
<td bgcolor="#FFFFFF" align=center >
&nbsp;『 功能选项 』</td>
  </tr>
  <tr height=31>
<a href="teaManage.jsp"  target="right">
    <td bgcolor="#f3f3f3" align=center onmouseover="this.bgColor='#a7a7a7'" onmouseout="this.bgColor='#f3f3f3'" style="cursor:hand">
>&nbsp;教师管理</td></a>
  </tr>
  <tr height=31>
<a href="studentManage.jsp"  target="right">
    <td bgcolor="#f3f3f3" align=center onmouseover="this.bgColor='#a7a7a7'" onmouseout="this.bgColor='#f3f3f3'" style="cursor:hand">
>&nbsp;学生管理</td></a>
  </tr>
  <tr height=31>
<a href="messageManage.jsp"  target="right">
    <td bgcolor="#f3f3f3" align=center onmouseover="this.bgColor='#a7a7a7'" onmouseout="this.bgColor='#f3f3f3'" style="cursor:hand">
>&nbsp;消息管理</td></a>
  </tr>
  <tr height=31>
<a href="notlogin.jsp"  target="_parent">
    <td bgcolor="#f3f3f3" align=center onmouseover="this.bgColor='#a7a7a7'" onmouseout="this.bgColor='#f3f3f3'" style="cursor:hand">
>&nbsp;退出管理</td></a>
  </tr>
</table> 
</table>
</body>第四个页面  mainadmin.jsp
<body topmargin=100 scroll="no">
<table width="50%" height="420" border="3" cellpadding="0" cellspacing="0" bordercolor="#DCEFFF">
  <tr>
    <td><div align="center">
      <p class="STYLE1">声明:</p>
      <p class="STYLE1">本管理程序仅限系统管理员使用</p>
    </div></td>
  </tr>
</table>
</body>

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【hyxwxy】截止到2008-07-24 10:40:32的历史汇总数据(不包括此帖):
    发帖的总数量:12                       发帖的总分数:160                      每贴平均分数:13                       
    回帖的总数量:18                       得分贴总数量:2                        回帖的得分率:11%                      
    结贴的总数量:11                       结贴的总分数:160                      
    无满意结贴数:0                        无满意结贴分:0                        
    未结的帖子数:1                        未结的总分数:0                        
    结贴的百分比:91.67 %               结分的百分比:100.00%                  
    无满意结贴率:0.00  %               无满意结分率:0.00  %                  
    值得尊敬
      

  2.   

    colspan=2 
    干嘛要合并??
      

  3.   

    因为其中有些html是拿现成的套来的,但是这应该不会影响的呀
      

  4.   

    代码够乱的,呵呵
    我试了下,是在又边,你这样看看
    <td colspan=2 valign="top"  width="20%">
    <IFRAME frameBorder=0 name=right src="mainadmin.jsp" style="HEIGHT: 400; VISIBILITY: inherit; WIDTH: 20%; Z-INDEX: 1"></IFRAME>
    看看
      

  5.   

    不行啊,为什么在我这儿始终在下边呢我换了firefox也是一样啊,郁闷中...
      

  6.   

    难道是美工MM?leftadmin.jsp代码真是混乱,我眼晕了。
    <table 写半截,
    >这个符号不能直接写,要转义符代替,
    标签属性一些用引号,一些又不用,
    标签<span>乱嵌套,开始标签在table外,结束标签在table内。
    table用太多了,
    根本不需要这么多,
    没多少代码,
    你还不如重新写。
    我认为主要的原因就在这个页面。
      

  7.   

    把 topadmin.jsp 和 leftadmin.jsp 的 body 标签去掉,把 mainadmin.jsp 的 html head 等标签加全。
      

  8.   

    因为代码被我改来改去,都不知道table写了两个,又一半在那儿,让大伙笑话了。
      

  9.   

    太神奇了,为什么我将leftadmin.jsp中的body标签去掉就正常显示了呢。
    严重感谢12楼的朋友。当然11楼的朋友的批评我虚心接受谢谢大家结贴了
      

  10.   

    JSP 的 include 指令会将被包含文件的内容原样放入 include 指令出现的位置并替换掉 include 指令,这样你最终得到的网页就有两个以上的 body 标签了,浏览器解析 HTML 代码时只能选择忽略一个,这样你的网页内容不就丢失了吗。