简体   繁体   中英

How to create fixed table headers using pivottable.js

I am using a JavaScript plugin ( pivottable.js ) to create pivot tables to display large data on a django site. I want to add a fixed/sticky table head that stays at the top of my div while I scroll down.

Due to the creation of the tables in the JavaScript I cannot easily select the pivot table headers.

Does anyone know of anyway they have accomplished this in the past? A large percentage of my users use IE so it is critical it works on that as well.

floatThead is what you need to look at http://mkoryak.github.io/floatThead/

According to its website:

jquery.floatThead is a floating/locked/sticky/fixed table header plugin that requires no special CSS and supports window and overflow scrolling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM