实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>表格的跨行合并功能</title> </head> <body> <caption>成绩表</caption> <table border="1px" cellspacing="0" cellpadding="10px" width="300px" > <thead> <tr bgcolor="#6495ed"> <th>姓名</th> <th>科目</th> <th>成绩</th> </tr> </thead> <tbody> <tr> <td rowspan="3" align="center">小明</td> <td>语文</td> <td>90</td> </tr> <tr> <td>数学</td> <td>100</td> </tr> <tr> <td>英语</td> <td>90</td> </tr> <tr> <td colspan="2" align="center">总分</td> <td>280</td> </tr> </tbody> </table> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例