关于tbody的用法

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

表格的分组显示(Structured Table) (IExplore Only)

1)按行分组

<thead> ... </thead> - 表的题头(Header)

<tbody> ... </tbody> - 表的正文(Body)

<tfoot> ... </tfoot> - 表的脚注(Footer)

例:

<table border>

<thead>

<tr><th>Food</th><th>Drink</th><th>Sweet</th>

</thead>

<tbody>

<tr><td>A</td><td>B</td><td>C</td>

<tr><td>D</td><td>E</td><td>F</td>

</tbody>

</table>

2)按列分组

<colgroup align=#> #=left, right, center

例:

<table border width=160>

<colgroup align=left>

<colgroup align=center>

<colgroup align=right>

<thead>

<tr><th>Food</th><th>Drink</th><th>Sweet</th>

</thead>

<tbody>

<tr><td>A</td><td>B</td><td>C</td>

<tr><td>D</td><td>E</td><td>F</td>

</tbody>

</table>

3)列的属性控制

<col span=#> #=从左数起,具有指定属性的列的列数

<col align=#> #=left, right, center

例:

<table border width=160>

<colgroup>

<col align=center span=2>

<colgroup align=right>

<thead>

<tr><th>Food</th><th>Drink</th><th>Sweet</th>

</thead>

<tbody>

<tr><td>A</td><td>B</td><td>C</td>

<tr><td>D</td><td>E</td><td>F</td>

</tbody>

</table>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航