element plus的.el-dialog__body修改不生效
时间: 2023-11-12 07:04:32 浏览: 72
如果你使用的是Element Plus的自定义主题,那么可能是因为你没有正确地设置主题变量导致样式修改不生效。可以检查一下以下几个方面:
1. 确认你的主题安装和引入都是正确的,可以尝试重新安装和引入主题;
2. 在你的样式文件中,确认你的样式修改是写在相应的主题变量下面的,例如:
```css
// 修改对话框 body 背景颜色
.el-dialog__body {
background-color: var(--dialog-body-bg-color);
}
```
3. 确认你的样式文件被正确地引入到了应用程序中,可以在浏览器的开发者工具中检查样式是否生效。
如果以上步骤都没有解决问题,可以提供更详细的代码和运行环境,以便更好地帮助你解决问题。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)