Html--table表格

时间:2021-08-07
本文章向大家介绍Html--table表格,主要包括Html--table表格使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--table:表格;
    border:加内外边框;
    cellpadding:内边框;
    cellspacing:外边框-->
<table border="1px" cellpadding="50px", cellspacing="5px">
    <!--表格头-->
    <thead>
    <!--tr: 行-->
    <tr>
        <!--th:行头-->
        <th>11</th>
        <th>22</th>
        <th>33</th>
    </tr>
    </thead>

    <!--表格体-->
    <tbody>
        <tr>
            <!--rowspan:占用几个格(合并单元格)-->
            <td rowspan="2">1</td>
            <td>2</td>
            <td>3</td>
        </tr>
        <tr>
            <td colspan="2">5</td>
        </tr>
    </tbody>
</table>

</body>
</html>

原文地址:https://www.cnblogs.com/longloved/p/15111765.html