<th>标签colspan属性指定表标题行单元格(某列)横跨多少列数。
本案例在表格的第二行第二列开始横跨两列
<table border="1"> <tr> <th align="left">教程课程</th> <th>学习天数</th> <th align="right">学习难度</th> </tr> <tr> <th>php</th> <th colspan="2">暂无数据</th> </tr> <tr> <th>HTML</th> <th>6天</th> <th>简单</th> </tr> </table>
![]() | 注意没有浏览器支持 colspan="0" |
<th colspan="列数"></th>