| 固定表头,为什么数据一多就不显示 |
| [ 来源:ITWENKU 时间:2007-4-6 13:49:41 | 浏览:277人次
] |
| |
|
表头是有合并的 <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> .tdborder { font-size: 12px; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: #cccccc; border-bottom-color: #cccccc; } .tabborder { text-align: center; border-top: 1px solid #cccccc; border-right: 0px solid; border-bottom: 0px solid; border-left: 1px solid #cccccc; } </style> </head> <body> <DIV style="OVERFLOW: auto; WIDTH: expression(document.body.clientWidth-0); HEIGHT:290px"> <%--<DIV style="OVERFLOW: auto; WIDTH: expression(document.body.clientWidth-0); HEIGHT: expression((document.body.clientHeight-this.offsetTop-20>this.children[0].offsetHeight)?(this.children[0].offsetHeight+20) : (document.body.clientHeight-this.offsetTop-20))">--%> <TABLE width="200%" border=1 cellPadding=3 align="center" cellSpacing=0 class="tabborder"> <TR bgcolor="#f0f0f0" align="center" style="Z-INDEX: 10; POSITION: relative; TOP: expression(this.offsetParent.scrollTop);"> <TD rowspan="2" class=tdborder style="position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);" nowrap>序号</TD> <TD rowspan="2" class=tdborder style="position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);">合同名称</TD> <TD rowspan="2" class=tdborder style="position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);" nowrap>合同编号</TD> <TD rowspan="2" class=tdborder style="position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);" nowrap>采购定单号</TD> <TD rowspan="2" class=tdborder style="position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);">供应商名称</TD> <td colspan="4" class=tdborder style="position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);">合同金额</td> </TR> <TR align="center" style="Z-INDEX: 10; POSITION: relative; TOP: expression(this.offsetParent.scrollTop);"> <td class=tdborder style="BACKGROUND-COLOR: #f0f0f0;position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);">设备</td> <td class=tdborder style="BACKGROUND-COLOR: #f0f0f0;position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);">软件</td> <td class=tdborder style="BACKGROUND-COLOR: #f0f0f0;position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);">费用</td> <td class=tdborder style="BACKGROUND-COLOR: #f0f0f0;position: relative; left: expression(this.parentElement.offsetParent.parentElement.scrollTop);">累计已收发票</td> </TR> <c:forEach ......> <tr> <TD class=tdborder><c:out value='${index}'/></TD> <TD class=tdborder align="right">数据n</TD> <TD class=tdborder align="right">数据n</TD> <TD class=tdborder align="right">数据n</TD> <TD class=tdborder align="right">数据n</TD> <TD class=tdborder align="right">数据n</TD> <TD class=tdborder align="right">数据n</TD> <TD class=tdborder align="right">数据n</TD> <TD class=tdborder align="right">数据n</TD> </tr> </c:forEach> </TABLE> </div> </body> </html>
<%--<DIV style="OVERFLOW: auto; WIDTH: expression(document.body.clientWidth-0); HEIGHT: expression((document.body.clientHeight-this.offsetTop-20>this.children[0].offsetHeight)?(this.children[0].offsetHeight+20) : (document.body.clientHeight-this.offsetTop-20))">--%>
??????????
<!--<DIV style="OVERFLOW: auto; WIDTH: expression(document.body.clientWidth-0); HEIGHT: expression((document.body.clientHeight-this.offsetTop-20>this.children[0].offsetHeight)?(this.children[0].offsetHeight+20) : (document.body.clientHeight-this.offsetTop-20))">-->
这是JSP里的.和这个没关系!
参考: http://community.csdn.net/Expert/topic/5345/5345647.xml?temp=1.237124E-02
|
|
 |
推荐文章 |
|