手机
当前位置:查字典教程网 >网页设计 >XHTML >html tbody 用法
html tbody 用法
摘要:表格的分组显示(StructuredTable)(IExploreOnly)1)按行分组...-表的题头(Header)...-表的正文(B...

表格的分组显示(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>

【html tbody 用法】相关文章:

html页面嵌套使用示例(frameset使用方法)

html中position的一个小用法使用介绍

html meta用法示例介绍

html meta viewport属性说明

html中锚点的应用

定义input type=file 样式的方法

HTML标签tbody的用法与说明

html marquee标签使用示例介绍

使用thead、tfoot、 tbody制作一个表格

html title里面加双引号的实现方法

精品推荐
分类导航