五:HTML之表格基础

一:基本表格结构:

<table>  表格

<td>      行

<tr>      单元格

<table>
  <tr>
    <td></td>
  </tr>
</table>

加个边距为1的边框:border="1"

二:带表头的表格:<th></th>

设置宽度:width

三:表格的标题:<caption></caption>

四:带结构的表格

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

  thead:表头

  tbody:主体

  tfoot:脚注

讨论群:249728408
原文地址:https://www.cnblogs.com/zhongyehai/p/13996332.html