简要咨询咨询QQ网站导航网站搜索手机站点联系我们设为首页加入收藏 

html tbody 用法

来源:易贤网   阅读:850 次  日期:2016-06-23 11:03:19

温馨提示:易贤网小编为您整理了“html tbody 用法”,方便广大网友查阅!

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

更多信息请查看网页制作
点此处就本文及相关问题在本站进行非正式的简要咨询(便捷快速)】     【点此处查询各地各类考试咨询QQ号码及交流群
上一篇:HTML 文本转义小窍门
下一篇:圆角矩形的html+css实现代码
易贤网手机网站地址:html tbody 用法
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!