涉及四个页面,上和左边显示正常,但右边页面却跑到了下面。将主要的代码贴出来请看看是怎么回事呢?
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">
欢迎</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 >
『 功能选项 』</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">
> 教师管理</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">
> 学生管理</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">
> 消息管理</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">
> 退出管理</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>
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">
欢迎</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 >
『 功能选项 』</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">
> 教师管理</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">
> 学生管理</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">
> 消息管理</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">
> 退出管理</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>
楼主【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 %
值得尊敬
干嘛要合并??
我试了下,是在又边,你这样看看
<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>
看看
<table 写半截,
>这个符号不能直接写,要转义符代替,
标签属性一些用引号,一些又不用,
标签<span>乱嵌套,开始标签在table外,结束标签在table内。
table用太多了,
根本不需要这么多,
没多少代码,
你还不如重新写。
我认为主要的原因就在这个页面。
严重感谢12楼的朋友。当然11楼的朋友的批评我虚心接受谢谢大家结贴了