我尝试使用colgroup为表的每一列赋予宽度,但它不起作用。示例代码在这里
<table>
<colgroup width="100%">
<col style="width: 5%; background-color: red">
<col style="width: 15%;">
<col style="width: 25%;">
<col style="width: 20%;">
<col style="width: 10%;">
<col style="width: 15%;">
<col style="width: 10%;">
</colgroup>
<tr>
<th> no </th>
<th>Reference No</th>
<th>Vendor Name</th>
<th>Vendor Name</th>
<th>Vendor Name</th>
<th>Vendor Name</th>
<th>Vendor Name</th>
</tr>
</table>
答案 0 :(得分:0)