简体   繁体   English

如何使用ivottable.js创建固定的表头

[英]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. 我正在使用JavaScript插件( ivottable.js )创建数据透视表以在django网站上显示大数据。 I want to add a fixed/sticky table head that stays at the top of my div while I scroll down. 我想添加一个固定/粘性表头,当我向下滚动时,它保持在div的顶部。

Due to the creation of the tables in the JavaScript I cannot easily select the pivot table headers. 由于在JavaScript中创建了表格,因此我无法轻松选择数据透视表标题。

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. 我的用户中有很大一部分使用IE,因此在IE上也能正常工作至关重要。

floatThead is what you need to look at http://mkoryak.github.io/floatThead/ floatThead是您需要查看的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. jquery.floatThead是一个浮动/锁定/粘贴/固定表头插件,不需要特殊的CSS,并支持窗口和溢出滚动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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