實現浮表頭的jQuery插件:jquery.floatThead
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" />
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!