el-card头部背景
时间: 2023-10-08 07:11:58 浏览: 225
el-select-tree:ElementUI的el-select与el-tree结合
5星 · 资源好评率100%
el-card头部的背景颜色可以通过修改.el-card__header类的background-color属性来实现。在样式中添加以下代码:
.el-card__header {
background-color: #xxxxxx;
}
其中,#xxxxxx是你想要设置的背景颜色的十六进制代码。你可以根据需要自行替换。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [el-card的头部样式在scoped下作用无效可添加/deep/或者>>>](https://blog.csdn.net/qq_33241251/article/details/103042500)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [elementui更改el-table表头背景颜色和字体颜色](https://blog.csdn.net/qq_66180056/article/details/126241901)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文