<th><td>表单用法
标准表格样式
<table>
<caption></caption>
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
<tfoot>
<tr>
<td></td>
</tr>
</tfoot>
</table>
table表格语法与结构
- <table>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
或者
- <table>
- <tr>
- <th> </th>
- <th> </th>
- <th> </th>
- </tr>
- </table>
以上2个表格结构中td和th使用,没有区别均可使用。
有时候我们也会用<table>来布局
淘宝支付页面里任意截的一张表格运用图片: