olgroup> 标签用于对表格中的列进行组合,以便对其进行格式化。 如需对全部列应用样式,<colgroup> 标签很有用,这样就不需要对各个单元和各行重复应用样式了。 实例<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> 可选的属性
|
|
来自: 晓米1phlmn7q5i > 《HTML标签》