资 源 简 介
ScrollTableHeader is a Javascript class that keeps selected rows visible when the user scrolls the page - or in other rows makes the header of a table fixed. It does so intelligently, or in other words, by default it behaves just as you would expect it to.
The code was developed with performance as a priority as it is imperative that if you need such functionality, you are dealing with huge tables - ones that take up more than one screen. Unobtrusiveness and ease of implementation was the second goal. No global variables or functions are declared outside of the ScrollTableHeader class and usage is as simple as it could get.
SEE DEMO
Implementation:
When creating the HTML table, enclose each section of rows in a `` tag and give it a unique ID.
In most cases you"d be enclosing all rows of the table, but this class supports more tha