我將最小寬度和最大寬度設置爲TH標籤。 Min-width屬性反映了max-width屬性未反映的位置。當我檢查,並檢查了個標籤它看起來只適用如何在表格中設置<th>標籤的最大寬度,最大寬度是否支持<th>?
<table>
<thead>
<tr>
<th> S.No </th>
<th> Name </th>
<th style="min-width:40px; max-width:150px;"> Description </th>
<th> Gender </th>
</tr>
</thead>
<tbody>
<tr>
<td> 1 </td>
<td> Xyz </td>
<td> Having Excess content more than 160 characters </td>
<td> Male/Female </t>
</tr>
</tbody>
</table>
max-width在表中,可以應用於所有th標籤。不是任何個人。 – eronax59
add'table {table-layout:fixed;}'和'th {max-width:150px}' – murli2308