固定表头的问题
以下是我的代码,我把表头设计为固定的,但是在"ROWSPAN"的行里,字只显示一半?如果去除固定表头的代码,就正常显示了!
为什么啊???
拜求各位达人帮忙啊!
<html>
<head>
</head>
<body>
<DIV style="height:100%;width=700px;overflow:scroll">
<TABLE width=100% border=1>
<tR style="BACKGROUND-COLOR: #CAE4FF; POSITION: relative;TOP: expression(this.offsetParent.scrollTop);">
<td align="center" bgcolor="#CAE4FF" rowspan="2" >font color="#000000" size="2">姓名</font></td>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">目标</font></td>
</TR>
<tR style="BACKGROUND-COLOR: #CAE4FF; POSITION: relative;TOP: expression(this.offsetParent.scrollTop);">
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">实际</font></td>
</TR>
<tr>
<td align="center" bgcolor="#CAE4FF" rowspan=2 ><font color="#000000" size="2">John</font></td>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">30</font></td>
</tr>
<tR>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">25</font></td>
</TR>
<tr>
<td align="center" bgcolor="#CAE4FF" rowspan=2 ><font color="#000000" size="2">Mary</font></td>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">32</font></td>
</tr>
<tR>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">28</font></td>
</TR>
</TABLE>
</div>
</body>
</html>
为什么啊???
拜求各位达人帮忙啊!
<html>
<head>
</head>
<body>
<DIV style="height:100%;width=700px;overflow:scroll">
<TABLE width=100% border=1>
<tR style="BACKGROUND-COLOR: #CAE4FF; POSITION: relative;TOP: expression(this.offsetParent.scrollTop);">
<td align="center" bgcolor="#CAE4FF" rowspan="2" >font color="#000000" size="2">姓名</font></td>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">目标</font></td>
</TR>
<tR style="BACKGROUND-COLOR: #CAE4FF; POSITION: relative;TOP: expression(this.offsetParent.scrollTop);">
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">实际</font></td>
</TR>
<tr>
<td align="center" bgcolor="#CAE4FF" rowspan=2 ><font color="#000000" size="2">John</font></td>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">30</font></td>
</tr>
<tR>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">25</font></td>
</TR>
<tr>
<td align="center" bgcolor="#CAE4FF" rowspan=2 ><font color="#000000" size="2">Mary</font></td>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">32</font></td>
</tr>
<tR>
<td align="center" bgcolor="#CAE4FF" ><font color="#000000" size="2">28</font></td>
</TR>
</TABLE>
</div>
</body>
</html>
...全文
相关推荐
gridview固定表头的一个实例
gridview固定表头 横向滚动 纵向固定,即拖动横向滚动条时,表头随着表体移动,纵向拖动滚动条时,表头固定不动 实践中所得一个具体实例 VS2010,C#
固定表头table
固定表头table,实现table固定行列
h5 固定表头及列头demo
根据一些思路写的一个固定第一行和第一列的demo,时间关系有点粗糙见谅,能自定适配h5,并修改容器大小也不会变形
可固定表头和左边列的jquery控件
一个可以固定表头(即冻结表头)和左边列(可设置固定左边几列)的jquery控件,应用简单。
GridView系列---GridView固定表头
GridView系列---GridView固定表头


