<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表格语法与结构

  1. <table
  2.     <tr
  3.         <td>&nbsp;</td
  4.         <td>&nbsp;</td
  5.         <td>&nbsp;</td
  6.     </tr
  7. </table

或者

  1. <table
  2.     <tr
  3.         <th>&nbsp;</th
  4.         <th>&nbsp;</th
  5.         <th>&nbsp;</th
  6.     </tr
  7. </table

以上2个表格结构中td和th使用,没有区别均可使用。

有时候我们也会用<table>来布局

淘宝支付页面里任意截的一张表格运用图片:

table表格实际应用地方

 

posted on 2016-12-13 19:44  aivnfjgj  阅读(238)  评论(0编辑  收藏  举报

导航