table 表格小总结 不足勿怪

<table width="数字px" height="数字px" bgcolor="背景颜色" cellspacing="数字px" cellpadding="数字px" border="边宽" bordercolor="边框颜色" rules="行列之间的线" align="left/center/right">
    <caption>标题</caption>
    <thead>
        <tr>
            <th></th>
            <!--注意⭐thead里的td换成th使用-->
        </tr>
    </thead>
    <tbody>
        <tr>
            <td></td>
            <td></td>
        </tr>
    </tbody>
    <tfoot>
       // tr>td*3(快速创建)
    </tfoot>
</table>

cellspacing:单元格间的距离

cellpadding :单元格与元素间的距离

==border=“边款 实线或虚线 颜色”==

实线:solid;虚线:dotted;

align:模板位置,在表格和模块中使用。

align=“center”;使表格模板居中

==注意==:auto在表格里不适用,但align在页面上不能用。

valign:列排列位置:middle(中间)

rules:

rows:行之间的线

cols:列之间的线

all:行和列之间的线

none:没有线

group:每个格子的线(默认)

都是给td

colspan=“所要合并的单元格的列数”,合并列

rowspan=“所要合并的单元格的行数”,合并行

原文地址:https://www.cnblogs.com/CH-cnblogs/p/13578720.html