<colgropp>指定表中的一个或者多个列以进行格式化和更改样式。
<COLGROUP>用于将样式应用于表中的整个列中。
<colgropp>指定表中的一个或者多个列以进行格式化和更改样式。
<COLGROUP>用于将样式应用于表中的整个列中。
<colgroup>必须是表元素的子项。
对于带有<colgoup>标记的列中的定义不同属性使用<col>标记。
HTML5 <colgropp>标签示例
<html> <head> <table> <colgroup> <col span="2" style="background-color: green" <col style="background-color: yellow" </colgroup> <tr> <th> Id </th> <th> Name </th> <th> Salary </th> </tr> <tr> <td> 101 </td> <td> my name </td> <td> 0 </td> </tr> </table> </head> </html>
日期:2020-04-11 23:04:15 来源:oir作者:oir