页面列表数据的表头或者行头冻结的方法
2011-11-21 09:16
218 查看
/*表格固定表头和行头样式start*/
.scrollDiv{
width:100%;overflow:scroll;
}
.scrollDiv table{
border-collapse: collapse;
}
.scrollDiv td{
border-bottom:1px solid #CCC;
border-right:1px solid #CCC;
height: 25px;
}
/*固定行头样式*/
.scrollDiv .scrollRowThead{
position: relative;
left: expression(this.parentElement.parentElement.parentElement.parentElement.parentElement.scrollLeft);
z-index:2;
background-color:EEEeee;
border-right:1px solid #CCC;
border-left:0px;
border-top:0px;
}
.scrollDiv .scrollRowTheadLeft{
border-top:0px;
border-left:1px solid #CCC;
}
.scrollDiv .scrollColThead .scrollRowThead{
border-top:1px solid #CCC;
}
.scrollDiv .scrollColThead .scrollRowTheadLeft{
border-top:1px solid #CCC;
}
/*固定表头样式*/
.scrollDiv .scrollColThead {
position: relative;
top: expression(this.offsetParent.scrollTop);
z-index:3;
text-align: center;
height: 26px;
background: #CCC;
}
.scrollDiv .scrollColThead td{
background-color: #eeeeee;
font-weight: bold;
text-align: center;
border-top:1px solid #CCC;
}
.scrollColThead td #aaa{
border-top:1px solid #CCC;
background-color: #eeeeee;
font-weight: bold;
text-align: center;
height: 52px;
}
.scrollSecondColThead {
position: relative;
top: expression(this.offsetParent.scrollTop);
z-index:2;
text-align: center;
height: 26px;
background: #CCC;
}
.scrollSecondColThead td{
background-color: #eeeeee;
font-weight: bold;
text-align: center;
background-color:EEEEEE;
}
.scrollDiv{
width:100%;overflow:scroll;
}
.scrollDiv table{
border-collapse: collapse;
}
.scrollDiv td{
border-bottom:1px solid #CCC;
border-right:1px solid #CCC;
height: 25px;
}
/*固定行头样式*/
.scrollDiv .scrollRowThead{
position: relative;
left: expression(this.parentElement.parentElement.parentElement.parentElement.parentElement.scrollLeft);
z-index:2;
background-color:EEEeee;
border-right:1px solid #CCC;
border-left:0px;
border-top:0px;
}
.scrollDiv .scrollRowTheadLeft{
border-top:0px;
border-left:1px solid #CCC;
}
.scrollDiv .scrollColThead .scrollRowThead{
border-top:1px solid #CCC;
}
.scrollDiv .scrollColThead .scrollRowTheadLeft{
border-top:1px solid #CCC;
}
/*固定表头样式*/
.scrollDiv .scrollColThead {
position: relative;
top: expression(this.offsetParent.scrollTop);
z-index:3;
text-align: center;
height: 26px;
background: #CCC;
}
.scrollDiv .scrollColThead td{
background-color: #eeeeee;
font-weight: bold;
text-align: center;
border-top:1px solid #CCC;
}
.scrollColThead td #aaa{
border-top:1px solid #CCC;
background-color: #eeeeee;
font-weight: bold;
text-align: center;
height: 52px;
}
.scrollSecondColThead {
position: relative;
top: expression(this.offsetParent.scrollTop);
z-index:2;
text-align: center;
height: 26px;
background: #CCC;
}
.scrollSecondColThead td{
background-color: #eeeeee;
font-weight: bold;
text-align: center;
background-color:EEEEEE;
}
相关文章推荐
- 页面数据导出到Excel或者Word方法
- js中对arry数组的各种操作小结 瀑布流AJAX无刷新加载数据列表--当页面滚动到Id时再继续加载数据 web前端url传递值 js加密解密 HTML中让表单input等文本框为只读不可编辑的方法 js监听用户的键盘敲击事件,兼容各大主流浏览器 HTML特殊字符
- 两个页面传数据的方法
- 实例分析vue循环列表动态数据的处理方法
- 获取请求WebServie或者其中方法调用页面地址的方法
- 回滚段表空间中的一个数据文件丢失或者损坏的恢复方法的总结
- 页面之间dataset数据传递方法
- Spinner下拉列表装填数据的两种方法
- MFC下拉列表数据顺序乱排解决方法
- 不刷新页面查询数据库中数据的方法
- 细说ASP.NET页面间数据传递的几种方法
- OAF学习笔记-18- Update后页面显示不是最新的数据的解决方法
- ASP.NET 1.1中页面数据存储方法
- 对于导出页面上的列表出现某栏不显示数据的问题
- ASP.NET一个页面多个Button按钮事件避免数据验证控件RequiredFieldValidator冲突方法
- jQuery EasyUI动态添加控件或者ajax加载页面后不能自动渲染问题的解决方法
- 回发或回调参数无效。在配置中使用 或在页面中使用 启用了事件验证。出于安全目的,此功能验证回发或回调事件的参数是否来源于最初呈现这些事件的服务器控件。如果数据有效并且是预期的,则使用 ClientScriptManager.RegisterForEventValidation 方法来注册回发或回调数据以进行验证。
- ios 应用中直接跳转到指定app页面 或者 app 评价页面 的方法
- Form表单只提交数据而不进行页面跳转的方法
- ASP.NET一个页面多个Button按钮事件避免数据验证控件RequiredFieldValidator冲突方法