BlaBla.cn 网页教程与代码的中文站点
最近更新日期:2007-04-23 作者:布啦布啦 参考来源:www.BlaBla.cn 布啦布啦网页教程与代码
网站首页
>
HTML 教程与实例代码
>
HTML 代码实例
>
HTML 表格 (Table) 实例
> 包含多行或多列的表格单元格
编辑文本后点击显示结果
Blabla.cn
<html> <body> <h4>用 colspan 属性,设置包含多列的单元格:</h4> <table border="1"> <tr> <th>姓名</th> <th colspan="2">联系方式</th> </tr> <tr> <td>Bill Gates</td> <td>555 77 854</td> <td>555 77 855</td> </tr> </table> <h4>用rowspan这个属性,设置包含多行的单元格:</h4> <table border="1"> <tr> <th>姓名</th> <td>Bill Gates</td> </tr> <tr> <th rowspan="2">联系方式</th> <td>555 77 854</td> </tr> <tr> <td>555 77 855</td> </tr> </table> </body> </html>
© 2005-2008 BlaBla.cn 版权所有