关于tbody的用法
2009-04-15 13:57
295 查看
表格的分组显示(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>
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>
相关文章推荐
- SQL2005关于quotename的用法(转)
- 关于typedef的用法总结
- ajax用法及关于同步异步的说明
- 关于request.files的用法
- 关于#/##在宏定义中的用法
- 关于ES6的 模块功能 Module 中export import的用法和注意之处
- bootstrap 中关于 HTML5 aria-* and role的用法
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法
- 【10.06】关于SPA,以及Backbone.js基本用法学习摘要
- 关于javascript 中的this 关键字的用法demo小代码
- 关于指针的几个错误用法
- Mysql关于bit类型的用法
- 关于自己对okhttp的理解-----get请求异步用法
- 关于Python的super用法研究
- 关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法
- 关于typedef的用法总结
- 关于编程语句i++与++i的区别用法
- 关于defer 的用法
- 关于Android 中的BaseAdapter用法理解
- 关于sizeof与strlen用法的讨论