以下将解决您的问题:
td.last { width: 1px; white-space: nowrap;}灵活的基于类的解决方案
一种更灵活的解决方案是创建一个
.fitwidth类,并将其应用于您要确保其内容适合一行的任何列:
td.fitwidth { width: 1px; white-space: nowrap;}然后在您的HTML中:
<tr> <td >ID</td> <td>Description</td> <td >Status</td> <td>Notes</td></tr>



