Loading

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>

 

posted @ 2022-04-21 11:20  云起时。  阅读(47)  评论(0编辑  收藏  举报