bootstrap 3响应表,有两个固定列

时间:2015-02-26 10:47:32

标签: css twitter-bootstrap-3

我使用this回答修复了bootstrap表中的第一列。

我想修复第一个TWO列,我需要在代码上进行哪些更改?

2 个答案:

答案 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']