el-dialog设置标题背景色
时间: 2023-08-01 09:08:59 浏览: 277
【JavaScript源代码】element-ui 弹窗组件封装的步骤.docx
要设置el-dialog的标题背景色,可以使用以下样式代码:
```html
<style>
.dialog1 .el-dialog__header {
background-color: #141d4d;
}
</style>
```
其中,`.dialog1`是自定义的类名,可以根据需要进行修改。将以上代码添加到页面中,即可将el-dialog的标题背景色设置为指定的颜色。\[1\]
#### 引用[.reference_title]
- *1* [ElementUI中Dialog 对话框背景色等样式修改](https://blog.csdn.net/Main_3K10/article/details/116743775)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [element的dialog弹框的背景色](https://blog.csdn.net/m0_47265814/article/details/108094388)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文