我对固定柱扩展 of 自举表有个问题。我试图使用一个rowspan属性在左边有一个“3行高”的固定列,然后是一个3行的固定列,但是它似乎不起作用:
https://jsfiddle.net/Lx87aetc/4/
我们的目标是使用以下体系结构来做一些事情:
<table>
<thead>
<tr>
<th></th>
...
</tr>
</thead>
<tbody>
<tr>
<td rowspan="3"></td>
...
</tr>
<tr>...</tr>
<tr>...</tr>
</tbody>
</table>有人想办法解决我的问题吗?
谢谢你,艾德
发布于 2016-03-01 02:10:36
这个解决方案根本不存在,它是一个bug,分为两个bug:
首先,引导表没有正确地处理rowspan / colspan管理(一些'-‘附加在行的末尾)。文志新纠正了这个问题:https://github.com/wenzhixin/bootstrap-table/commit/468169cde5bdbf2178a9299d288622fe93777aaa
其次,固定列扩展也不正确,这导致了一个“双”错误(一些'-‘+错误的固定列):我更正了扩展bug:https://github.com/wenzhixin/bootstrap-table-fixed-columns/pull/12。
现在起作用了:https://jsfiddle.net/wenyi/3v7h5erL/3/
它是解决像这样的简单情况:
<table data-toggle="table" data-fixed-columns="true" data-fixed-number="3">
<thead>
<tr>
<th>Title</th>
<th>1</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">Momentum</td>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
</tbody>
</table>https://stackoverflow.com/questions/35473014
复制相似问题