html - table表格

表的基本结构:

复制代码
    <table>
        <!--表头-->
        <thead>
        <tr>
            <th>id</th>
            <th>name</th>
        </tr>
        </thead>
        <!--表的内容-->
        <tbody>
        <tr>
            <td>1</td>
            <td>levi</td>
        </tr>
        </tbody>
        <!--表尾-->
        <tfoot>
        <tr>
            <td>1</td>
            <td>levi</td>
        </tr>
        </tfoot>
    </table>
复制代码

thread:表头,tbody:表内容,tfoot:表尾

tr:行,td:列,th:列(居中并且加粗)

 

posted on   每天积极向上  阅读(78)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示