课堂随笔3月8日下午

<table>表格
  <tr><!--行-->
    <td><!--列--></td>
    <td><!--列--></td>
    <td><!--列--></td>
  </tr>
</table>
百分比可以对任何网站 浏览器使用
<align="center">表格居中
top 上
bottom 下
middle 中
left 左
center 中
right 右
  <th>   </th> 表格标题 加粗加居中
  <width> 宽度
  <border> 边框
  <bgcolor> 背景色
  <background> 背景图片
  <td>  </td> 单元格
  <th>  </th>表头
  <colspan="n"> 合并同一行单元格(后面写的代码要减去相对应的列)
  <rowspan="n"> 合并同一列单元格(从第二行开始减去相对应的列)
内容必须放在单元格里,单元格必须放在行里,行必须放在表格里,设置单元格
行高,列高时,会同时影响对应的行或列
<table>
  <tr>
    <th>
    垂直并加粗
    </th>
  </tr>
</table>

<table>
    <tr>
        <thead>
         表头(head是头,所以thead就是表的最顶层。)
        </thead>
    </tr>
</table>

<table>
    <tr>
        <thead>
            表尾(foot是脚,所以tfoot就是表的最底层。)
        </thead>
    </tr>
</table>

原文地址:https://www.cnblogs.com/zhushijun/p/6519410.html