解决table-layout:fixed导致单元格宽度不受控制的问题

通过使用colgroup 元素即可设置宽度

<table cellspacing="0" cellpadding="0"  style="table-layout:fixed;">
<tbody>
<colgroup style="100px;"></colgroup>
<colgroup style="205px;"></colgroup>
<colgroup style="100px;"></colgroup>
<colgroup style="205px;"></colgroup>
<tr>
<th align="right">www</th>
<td class="tab-align-l">www</td>
<th align="right">www</th>
<td class="tab-align-l">www</td>
</tr>

</tbody>
</table>

原文地址:https://www.cnblogs.com/zhenzhong/p/3580022.html