首页 > 其他 > 详细

thead,tbody,tfoot标签的使用

时间:2017-07-20 14:43:55      阅读:244      评论:0      收藏:0      [点我收藏+]

带有 thead、tbody 以及 tfoot 元素的 HTML 表格

                                                                                                           运行结果:                         技术分享

 

<html>                            thead:<thead> 内部必须拥有 <tr> 标签!

<head>                                                                                                 tbody
<style type="text/css">
thead {color:green}                                                                               tfoot
tbody {color:blue;height:50px}
tfoot {color:red}                                                                                     
</style>
</head>
<body>

<table border="1">
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
</table>

</body>
</html>

thead,tbody,tfoot标签的使用

原文:http://www.cnblogs.com/lizuowei/p/7211002.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!