我使用this回答修复了bootstrap表中的第一列。
我想修复第一个TWO列,我需要在代码上进行哪些更改?
答案 0 :(得分:0)
更改此行$fixedColumn.find('th:not(:first-child),td:not(:first-child)').remove();
使用:nth-child() Selector
$fixedColumn.find('th:not(:first-child),td:not(:first-child)').remove();`
`$fixedColumn.find('th:not(:nth-child(2)),td:not(:nth-child(2))').remove();`
答案 1 :(得分:0)
更改此行$ fixedColumn.find('th:not(:first-child),td:not(:first-child)')。remove();
到你想要的列:nth-child()选择器
$lang['TITLE']