问答详情
源自:5-5 使用thead、tbody、tfoot定义表格

这样对了吗

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>使用thead、tbody、tfoot标签</title>
</head>

<body>
<h1>成绩表</h1>
<hr>
<table border="1">
    <thead>
        <tr>
            <th>科目</th>
            <th>分数</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>语文</td>
            <td>99</td>
        </tr>
        <tr>
            <td>数学</td>
            <td>60</td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <td>总分</td>
            <td>159</td>
        </tr>
    </tfoot>
    
</table>
</body>

</html>


提问者:qq_慕斯卡1198356 2022-09-28 20:47

个回答

  • 慕瓜5401798
    2023-07-21 18:53:41

    我也觉得很对!

  • qq_慕数据9174283
    2022-10-01 17:04:57

    我觉得对呀