本教程操作环境:windows7系统、css3&&html5版、dell g3电脑。
在html中中,创建一个带表头的表格:
<table border="1"> <thead> <tr> <th>month</th> <th>savings</th> </tr> </thead> <tfoot> <tr> <td>sum</td> <td>$180</td> </tr> </tfoot> <tbody> <tr> <td>january</td> <td>$100</td> </tr> <tr> <td>february</td> <td>$80</td> </tr> </tbody></table>
1、使用color属性设置字体颜色
thead {color: #ffc0cb;}
2、使用background属性设置背景颜色
thead {color: #ffc0cb;background:blue;}
(学习视频分享:css视频教程)
以上就是html里怎么设置thead表头的颜色的详细内容。
