html - table
作者:互联网
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>table</title> </head> <body> <hr> <table border="1"> <caption>表格</caption> <thead> <tr> <th>姓名</th> <th>年龄</th> </tr> </thead> <tbody> <tr> <td>张三</td> <td>李四</td> </tr> <tr> <td>王二</td> <td>麻子</td> </tr> </tbody> <tfoot> <tr> <td>统计</td> <td>800000000</td> </tr> </tfoot> </table> <hr> <table border="1"> <caption>水平单元格合并</caption> <thead> <tr> <th>编号</th> <th>姓名</th> </tr> </thead> <tbody> <tr> <td colspan="2">1 李四</td> </tr> <tr> <td>2</td> <td>麻子</td> </tr> </tbody> <tfoot> <tr> <td>统计</td> <td>800000000</td> </tr> </tfoot> </table> <hr> <table border="1"> <caption>垂直单元格合并</caption> <thead> <tr> <th>编号</th> <th>姓名</th> </tr> </thead> <tbody> <tr> <td rowspan="2">1 2</td> <td>李四</td> </tr> <tr> <td>麻子</td> </tr> </tbody> <tfoot> <tr> <td>统计</td> <td>800000000</td> </tr> </tfoot> </table> <hr> <p>视频</p> <video loop controls width="500" height="500" poster="image.jpg" preload="metadata"> <source src="video.mp4" type="video/mp4"> </video> </body> </html>
标签:麻子,李四,单元格,800000000,html,姓名,table 来源: https://www.cnblogs.com/LiuChang-blog/p/16173306.html