解决table中<thead>固定,只有列表数据滚动的问题
2016-10-27 15:44
330 查看
<style>
table tbody {
display:block;
height:195px;
overflow-y:scroll;
}
table thead, tbody tr {
display:table;
width:100%;
table-layout:fixed;
}
table thead {
width: calc( 100% - 1em )
}
table thead th{ background:#ccc;}
</style>
table tbody {
display:block;
height:195px;
overflow-y:scroll;
}
table thead, tbody tr {
display:table;
width:100%;
table-layout:fixed;
}
table thead {
width: calc( 100% - 1em )
}
table thead th{ background:#ccc;}
</style>
相关文章推荐
- 解决table中<thead>固定,只有列表数据滚动的问题
- 【微信小程序】解决 竖向<scroll-view>组件 “竖向滚动页面出现遮挡”问题
- 分页列表td中包含有<标签导致页面显示错乱问题,使用jstl <c:out>标签秒解决
- Tips: 解决XSLT中table内容<br/>换行问题
- pb11 -- PB12 查询数据时死锁问题解决办法<转>
- Tips: 解决XSLT中table内容<br/>换行问题
- 如何解决List<T> 类型的数据属性值去重的问题
- js简单固定table表头及css问题分析。 复制代码 <head> <meta name="viewport" content="width=device-width" /> <ti
- JavaScript导出table数据到Excel<二>
- 固定div实现,以及问题 >> document.body.scrollTop的值总为零的解决办法
- 待解决问题:验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate
- hadoop "File /user/<user>/input/conf/slaves could only be replicated to 0 nodes, instead of 1"问题及解决办
- LINQ那些事(9)-解析Table<T>.Attach引发的异常和解决方法
- phpmyadmin " 无法载入 mcrypt 扩展,<br />请检查 PHP 配置"的问题解决办法
- 解决用<img src="<%# Eval("ShowPhoto")%>"动态绑定图片,发布到IIS上无法显示的问题
- 简单解决Linq多条件组合问题<转>
- <学习笔记>王爽汇编语言__处理数据的两个基本问题
- 数据库死锁问题 及 解决方法 <收藏>
- JavaScript导出table数据到Excel<一>
- RadComboBox 的 Virtualization 方式,解决数据过多,下拉列表显示缓慢问题。