bootstrap的table表头固定tbody滚动
来源:互联网 发布:用友软件合同 编辑:程序博客网 时间:2024/05/13 19:17
<!DOCTYPE html><html><head><title></title><meta charset="UTF-8"><link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"><script type="text/javascript" src="js/bootstrap.min.js"></script><script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script src="iscroll.js"></script></head><body><div id="con" class="container"><div id="2"> <table class="table table-bordered scrolltable"><thead style="display:block;overflow-y: scroll;border-bottom:1px solid #eee;"><tr><th>栏目一</th><th>栏目二</th><th>栏目三</th><th>栏目一</th><th>栏目二</th><th>栏目三</th></tr></thead><tbody style="display:block; max-height:200px;overflow-y: scroll;"><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr><tr><td>星期一</td><td>星期二</td><td>星期三</td><td>星期一</td><td>星期二</td><td>星期三</td></tr></tbody></table></div></div></body><script type="text/javascript">$(document).ready(function(){var _width=$('#2').width();$('#2 th:first-child').width(_width*0.1);$('#2 td:first-child').width(_width*0.1);$('#2 th:nth-child(2)').width(_width*0.2);$('#2 td:nth-child(2)').width(_width*0.2);$('#2 th:nth-child(3)').width(_width*0.3);$('#2 td:nth-child(3)').width(_width*0.3);$('#2 th:nth-child(4)').width(_width*0.1);$('#2 td:nth-child(4)').width(_width*0.1);$('#2 th:nth-child(5)').width(_width*0.1);$('#2 td:nth-child(5)').width(_width*0.1);$('#2 th:nth-child(6)').width(_width*0.2);$('#2 td:nth-child(6)').width(_width*0.2);})</script></html>
0 0
- bootstrap的table表头固定tbody滚动
- 简单的自定义固定表头thead tbody滚动 第二版
- bootstrap固定table表头
- bootstrap Table表头固定
- bootstrap固定table表头
- bootstrap中固定table的表头
- table的表头固定--上下滚动表头固定,左右滚动跟随滚动
- bootstrap-table表头固定,表内容不对齐的问题
- 固定table的表头
- table 表头固定,表体滚动的css方法
- GridView(table) 滚动条 固定表头、列
- 实现table表头固定 内容滚动效果
- table中head表头固定,body滚动
- table表头固定表体滚动
- 如何固定table的表头
- 如何固定table的表头
- 如何固定table的表头
- JavaScript:固定table的表头
- 模拟printf函数,//print("val:s ccccc\n","hello", 'w,'o','r','l','d'); //val:hello world(可变参数列表)
- c++第三次实验
- #leetcode#338. Counting Bits
- 高斯高通滤波器
- javaweb中如果用户没有登录,不能访问别的页面,只能访问登录页面
- bootstrap的table表头固定tbody滚动
- poj2104K-th Number
- Android Activity四种启动方式
- 聪明的人类往往喜欢独处
- 九度 1009
- Fragment 嵌套ViewPager(ViewPager里面有多个Fragment)
- Hibernate对象的三种状态
- java的左移和右移的区别常见的hascode和equals写法
- bzoj 1010: [HNOI2008]玩具装箱toy|+自我吐槽