有没有人使用带有堆叠标题和数据的tablesorter? 两行从一行分开。这是小提琴:
Stacked header and column per 2 rows
的CSS:
tr:nth-child(4n+1) { color: green; }
tr:nth-child(4n+2) { color: green; }
tr:nth-child(4n+3) { color: red; }
tr:nth-child(4n+4) { color: red; }
答案 0 :(得分:0)
如果我理解你在问什么,请将新的第二行作为第一行的子行(demo):
<tr>
<td>Column 1 line 1</td>
<td>Column 2 line 1</td>
<td>Column 3 line 1</td>
<td>Column 4 line 1</td>
</tr>
<tr class="tablesorter-childRow">
<td>Column 5 line 1</td>
<td>Column 6 line 1</td>
<td>Column 7 line 1</td>
<td>Column 8 line 1</td>
</tr>