我正在使用 Twitter Bootstrap,当一些图标在手风琴内时,我很难将它们与标签对齐。
到目前为止我所取得的成果如下所示,但我希望左边的 3 个图标等间距,右边的标签。
另外,我想在显示 collapseOne 时将第一个图标 (icon-chevron-down) 更改为 (icon-chevron-up)。
这是一些演示html:
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<table>
<tr>
<td>
<div class="clearfix"></div>
</td>
<td>
<label title="link ![enter image description here][2]1">link1</label>
</td>
<td>
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"><i class="icon-chevron-down"></i></a>
</td>
<td>
<a href="#"><i class="icon-edit"></i></a>
</td>
<td>
<a href="#"><i class="icon-trash"></i></a>
</td>
<tr>
</table>
</div>
<div id="collapseOne" class="accordion-body collapse" style="height: 0px; ">
<div class="accordion-inner">
This is link 1
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<table>
<tr>
<td>
<div class="clearfix"></div>
</td>
<td>
<label title="link 2">link2</label>
</td>
<td>
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"><i class="icon-chevron-down"></i></a>
</td>
<td>
<a href="#"><i class="icon-edit"></i></a>
</td>
<td>
<a href="#"><i class="icon-trash"></i></a>
</td>
<tr>
</table>
</div>
<div id="collapseOne" class="accordion-body collapse" style="height: 0px; ">
<div class="accordion-inner">
This is link 2
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<table>
<tr>
<td>
<div class="clearfix"></div>
</td>
<td>
<label title="link 3">link3</label>
</td>
<td>
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"><i class="icon-chevron-down"></i></a>
</td>
<td>
<a href="#"><i class="icon-edit"></i></a>
</td>
<td>
<a href="#"><i class="icon-trash"></i></a>
</td>
<tr>
</table>
</div>
<div id="collapseOne" class="accordion-body collapse" style="height: 0px; ">
<div class="accordion-inner">
This is link 1
</div>
</div>
</div>
</div>