我尝试使用此代码修复标头表 CODE Here,但我的真实表格是:
<table id="table table-chrome table-striped wrapped-results table-drilldown table-drilldown-cell"/>
那么如何更改Javascript才能使用它?
答案 0 :(得分:1)
这是一个更新的小提琴:http://jsfiddle.net/3q8py094/
创建一个新变量:
var querySelector = 'table[id*=drilldown]';
然后将#maintable
的所有引用替换为querySelector
丹