您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

HTML里怎么设置thead表头的颜色

2024/4/22 17:17:25发布22次查看
html中设置thead表头颜色的方法:1、使用“thead {color: 颜色值;}”语句设置表头的字体颜色;2、使用thead {background:颜色值;}语句设置表头的背景颜色。
本教程操作环境: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表头的颜色的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product