企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**合并单元格:** 1. 跨行合并:rowspan 2. 跨列合并:colspan ``` <table cellspacing="0" border="1" style="margin-top: 100px;" width="400" align="center"> <caption>案例:跨列、跨行合并单元格</caption> <thead> <tr> <th>姓名</th> <th>性别</th> <th>年龄</th> <th>爱好</th> </tr> </thead> <tbody> <tr> <td>刘德华</td> <td rowspan="2">男</td> <td>55</td> <td>爱好1</td> </tr> <tr> <td>张学友</td> <!-- <td>男</td>--> <td rowspan="2">56</td> <td>爱好2</td> </tr> <tr> <td>杨钰莹</td> <td>女</td> <!-- <td>56</td>--> <td>爱好3</td> </tr> <tr> <td>合计</td> <td colspan="3">哈哈</td> </tr> </tbody> </table> ``` **演示:** ![](https://img.kancloud.cn/19/b9/19b9d035e99581a9ce4ff7dda360b8fc_644x289.png)