我試圖設定比例列寬度隨<col width="x*" />
:設置帶比例列寬度<COL寬度=「×*」 />
<table width="600px">
<col width="1*" />
<col width="2*" />
<col width="3*" />
<tbody>
<tr>
<td style="border: 1px solid black;">AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA
</td>
<td style="border: 1px solid black;">BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB BBB
</td>
<td style="border: 1px solid black;">CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC CCC
</td>
</tr>
</tbody>
</table>
儘管<col>
標籤設置比例,列寬度是相等的。我做錯了什麼?
在http://www.mozilla.org/newlayout/testcases/layout/columnconstraints.html上似乎有一個測試用例,它在Chrome 3.0,Firefox 3.0或IE 8.0中對我無效。 – 2009-11-30 22:06:40
@Dominic Rodger:這沒什麼幫助:))'table-layout:fixed'似乎有幫助。 – LukLed 2009-11-30 22:26:46