WEB 开发 开发语言 Java 技术 .Net 技术 数 据 库 硬件使用
图象媒体 Linux/Unix 移动平台 嵌入开发 Windows 专区 软件工程
Ajax 技术 | ASP | PHP | ASP.NET | C# | JSP | Access | Oracle | 网页设计 | Flash | 安全专题 | IIS | VC/MFC | Delphi | C/C++
 你的位置:首页 > WEB 开发 > HTML(CSS)

固定表头,为什么数据一多就不显示
[ 来源: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

 相关文章
·display:inline;问题
·有没有 PHP 的 HTML编辑器控件啊?
·如何在网页中添加时间(钟表),谢谢
·CSS布局自适应高度解决方法
·为什么Firefox和Opera都不支持Display:InLine样式的?
·CSS文字问题

 推荐文章
请问如何删除页面元素?
DreamWeaver中连数据库时在Application->Databases里看不到数据源
表格样式请教!
分页的实现
为什么是这样呢?在XSlt中正常而在Html中无效了
怎么实现对TXT文本文件的对比!?
这段代码 谁能给写个注释!?怎么让这段代码注册的用户名称不重复!?
字符串的问题
css中link和import的有区别吗?
IE发出了请求,为什么服务器端没有完全收到
我golive装上去说不能用,遇到技术问题
请教有关html里frame的问题
 版权所有:IT问库
copyright © 2006 www.itwenku.cn all rights reserved.