<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "https://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta charset="UTF-8"> <title>HTML表格</title> </head> <body> <table width="500px" height="auto" cellspacing="5" cellpadding="10" border="1"> <caption>用户信息表格</caption> <thead> <tr> <th>编号</th> <th>姓名</th> <th>性别</th> <th>电话</th> </tr> </thead> <tbody> <tr> <td rowspan="2">1001</td> <td rowspan="2">张三丰</td> <td rowspan="2" align="center">男</td> <td>027-90909611</td> </tr> <tr> <td>027-90909612</td> </tr> <tr> <td>1002</td> <td>李敏</td> <td align="center">女</td> <td>010-87967704</td> </tr> </tbody> <tfoot> <tr> <td colspan="4">备注:这里使用了tfoot标签</td> </tr> </tfoot> </table> </body> </html>
在线代码编辑器
HTML / CSS / JavaScript 实时预览
更多工具
运行
保存
自动执行
模板
JS 库
清空
主题
代码编辑区
字符数: 0
提示: 输入完整的 HTML 代码,需包含 DOCTYPE 声明与 html 根标签
预览效果
选择模板
取消
选择库和版本
库
版本
文件
取消
已复制到剪贴板