表格单元横跨两列的表格:
</>code
- <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>
colspan 属性规定单元格可横跨的列数。
所以浏览器都支持 colspan 属性。
没有浏览器支持 colspan="0",这个值有特殊的意义。(参见属性值表格中的描述)
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号