1:纯html 实现
使用2个table 来做,第一个table 用来做表头【thead】,第二个table 用来做表体【tbody】
为了保证2个表的列的宽度是一致的,需要使用<colgroup> 标签。 代码如下:
完整代码如下:
1 2 3 4 5 6 7 8Document 9 10 11 12 13
编号 | 22名称 | 23
---|
27 28
51
52 53 54 1 | 35jack | 36
2 | 39tom | 40
3 | 43lily | 44
4 | 47west | 48
2: github 上开源的bootstrap 插件 https://github.com/wenzhixin/bootstrap-table
3:http://www.fixedheadertable.com/
4:https://datatables.net/extensions/fixedheader/