其他分享
首页 > 其他分享> > 表格元素练习

表格元素练习

作者:互联网

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        th,
        td {
            border: 1px solid pink;
        }       
        table {
            border-collapse: collapse;
        }
    </style>
</head>

<body>
    <table>
        <caption>
            标题
        </caption>
        <thead>
            <tr>
                <!-- th -->
                <th>h11</th>
                <th>h12</th>
                <th>h13</th>
            </tr>

        </thead>
        <tbody>
            <tr>
                <!-- td -->
                <td>h21</td>
                <td>h22</td>
                <td>h23</td>
            </tr>

        </tbody>
    </table>
</body>

</html>

标签:pink,练习,collapse,表格,solid,h11,h12,元素,border
来源: https://www.cnblogs.com/icemiaomiao3/p/14123655.html