码迷,mamicode.com
首页 > 其他好文 > 详细

带标题、表头和结构的表格

时间:2018-08-08 10:33:17      阅读:864      评论:0      收藏:0      [点我收藏+]

标签:不能   head   ...   布局   body   表格   cap   显示   部分   

带结构的表格:

<table>

  <caption>...</caption>  表格标题,居中显示

  <thead>

    <tr>

      <th>表头</th>  表格头,内容居中、加粗显示

      ...

    </tr>

  </thead>

  <tbody>

    <tr>

      <td>主体</td>

      ...

    </tr>

  </tbody>

  <tfoot>

    <tr>

      <td>脚注</td>

      ...

    </tr>

  </tfoot>

</table>

带结构的表格:

表格划分三部分:表头、主体、脚注

thead:表格的头(放标题之类内容)

tbody:表格的主体(放数据主体)

tfoot:表格的脚(放表格的脚注)

 

<thead><tbody><tfoot>标签不能影响布局。

带标题、表头和结构的表格

标签:不能   head   ...   布局   body   表格   cap   显示   部分   

原文地址:https://www.cnblogs.com/hugegege/p/9440985.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!