HTML <td> 标签的 colspan 属性

来源:互联网 发布:冒险岛新数据库 编辑:程序博客网 时间:2024/05/16 16:15
 定义和用法

colspan 属性规定单元格可横跨的列数。

实例

表格单元横跨两列的表格:

<table border="1">  <tr>    <th>Month</th>    <th>Savings</th>  </tr>  <tr>    <td colspan="2">January</td>  </tr>  <tr>    <td colspan="2">February</td>  </tr></table>

 

原创粉丝点击