HTML <col> 标签
html <col> 设置了 <colgroup> 元素内部的每一列的列
使用 <col> 可以向整个列应用样式,而不需要重复为每个单元格或每一行设置样式
范例
<colgroup> 和 <col> 为表格中的三个列设置了背景色
<table border="1"> <colgroup> <col span="2" style="background-color:red"> <col style="background-color:yellow"> </colgroup> <tr> <th>ISBN</th> <th>Title</th> <th>Price</th> </tr> <tr> <td>3476896</td> <td>My first HTML</td> <td>$53</td> </tr> </table>
HTML 4.01 与 HTML5 之差异
HTML5 中不再 HTML 4.01 中的大部分
HTML 与 XHTML 之差异
在 HTML 中,<col> 没有结束
在 XHTML 中,<col> 必须被正确的