实现浮表头的jQuery插件:jquery.floatThead
jopen
11年前
jquery.floatThead 实现了一个个浮动/锁定 的表头,不需要特别的 CSS,支持窗口和溢出滚动。
特性:
- Floats the table header - so that the user can always see it
- Supports tables with inner scroll bars, or window scrolling
- Horizontal or vertical scrolling
- Doesn't clone the
thead
- so your events stay bound - Doesn't mess with your styles
- Works on any table
- Requires no special css
- Works with datatables out of the box
要求:
- jQuery 1.8.x or better (code is 1.9+ compliant) or jQuery 1.7.x + jQuery UI core
- Internet Exploder 8 - 11, FireFox 10+ or Chrome15+
- Add this meta tag into your header to placate IE:
<meta http-equiv="X-UA-Compatible" content="IE=10; IE=9; IE=8; IE=7; IE=EDGE" />