<col>标签 span属性设置列属性应用到多少列(横跨数)。
本案例设置的三列,第一列为红色,第二、三列为横跨两列的属性是黄色
<table border="1"> <col style="background-color:red"> <col span="2" style="background-color:#FFFF00"> <tr> <th>教程课程</th> <th>学习天数</th> <th>学习难度</th> <th>学习费用</th> </tr> <tr> <th>php</th> <th>7天</th> <th>中等</th> <th>免费</th> </tr> <tr> <th>HTML</th> <th>6天</th> <th>简单</th> <th>免费</th> </tr> </table>
<col span="横跨数">