我有一个有三列的表格
**********************************************************
* Name * Description * Actions *
**********************************************************
* John * Lorem ipsum bla bla etc eetc * B1 *
* * * B2 *
**********************************************************
发生的情况是最后一列先换行其内容,然后是描述列。我希望描述列先换行。
我尝试添加 white-space: nowrap
但这时操作列永远不会换行。
浏览器如何决定哪一列要换行?
我希望第三列是最后一个换行的。因此,在描述列完全换行之前,它应该在单行上显示按钮。当没有更多空间可用时,该列可以换行。
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css');
<table class="table">
<thead>
<tr>
<th>Entity</th>
<th>ID</th>
<th>Description</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Customer</td>
<td>9004</td>
<td>null, asdjkajk, kkkjk, kjkk, kkk, 898989</td>
<td>
<button class="btn c-btn">
<span class="glyphicon glyphicon-pencil"></span>
</button>
<button class="btn c-btn">
<span class="glyphicon glyphicon-remove"></span>
</button>
</td>
</tr>
</tbody>
</table>