我试图使用<col/>
元素格式化一个 <table/>
中的列。我可以设置background-color
、width
等,但无法设置font-weight
。为什么会这样呢?
<table>
<col style="font-weight:bold; background-color:#CCC;">
<col>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>