首页前端开发HTMLhtml tbody 用法

html tbody 用法

时间2024-01-27 02:06:03发布访客分类HTML浏览1007
导读:收集整理的这篇文章主要介绍了html tbody 用法,觉得挺不错的,现在分享给大家,也给大家做个参考。 表格的分组显示(Structured Table (IExplore Only) 1)按行分组 <thead>...
收集整理的这篇文章主要介绍了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>

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

html

若转载请注明出处: html tbody 用法
本文地址: https://pptw.com/jishu/587578.html
HTML title 属性换行的办法 nofollow让评论和留言中的链接起到真正的作用

游客 回复需填写必要信息