I am using this plugin to achieve a sticky Table Header in my Table. Actually as in the plugin example and in my page, the table Header disappear a bit later the last row in the table. I want my table header disappearing exactly when the last row is gone.There is a chance to achieve that?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
I know this is old, but I felt like contributing something that may help some...
For dynamic tables (where the width for each cell is pre-computed), this plugin messes up the widths for the header row.
I made a few changes that help compute the width based on each outerWidth from the cells based on the first tbody row.
First comment out the current width calculations in the plugin:
Then add the following to the end of base.toggleHeaders = function () {
You could add a bug report on github:
https://github.com/jmosbech/StickyTableHeaders/issues
I wrote a jquery library that makes the table be fixed at the top of the page and disappearing exactly when the last row is gone
This is a small jquery library functions combined with ScrollFix https://github.com/ShiraNai7/jquery-scrollfix library to provide a header table fixed below the main menu. the library supports several tables on the same page
https://github.com/doska80/ScrollTableFixed
here's a working example: fiddle
all I changed was the end of this line: