element-ui的 Dialog 对话框背景图片

element-ui的 Dialog 对话框背景图片

效果如图:

代码:

复制代码
!!!注:如果style里有scoped="scoped"会不生效,要单独写个<style></style>
<style>
.bgc {
    /* 弹窗样式 */
    .el-dialog,
    .el-pager li {
        background-color: rgba(255, 0, 0, 0.0);
        color: #FFFFFF;
        background-image: url('../assets/images/dialog1.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    /* 将el-dialog__header、el-dialog__body、el-dialog__footer背景设置为透明 */
    .el-dialog__header {
        padding-top: 10px !important;
        background-color: rgb(255, 255, 255, 0);
        border-radius: 14px 14px 0 0;
    }

    .el-dialog__body {
        border-top: 0 !important;
        background-color: rgba(19, 31, 59, 0);
        color: #FFFFFF;
    }

    .el-dialog__footer {
        text-align: center;
        background-color: rgba(255, 255, 255, 0);
    }
}
</style>
相关推荐
进阶的小木桩3 天前
Vue 3 + Elementui + TypeScript 实现左侧菜单定位右侧内容
vue.js·elementui·typescript
北辰浮光5 天前
[Element-plus]动态设置组件的语言
javascript·vue.js·elementui
胡斌附体6 天前
elementui cascader 远程加载请求使用 选择单项等
前端·javascript·elementui·cascader·可独立选中单节点
小离a_a7 天前
el-tree方法的整理
前端·vue.js·elementui
code_txy8 天前
element plus table 表格操作列根据按钮数量自适应宽度
elementui
阿奇__9 天前
深度修改elementUI样式思路
前端·vue.js·elementui
什么什么什么?12 天前
el-table高度自适应vue页面指令
前端·javascript·elementui
海天胜景12 天前
vue3 el-table 去除小数 并使用千分号
javascript·vue.js·elementui
肖恩想要年薪百万12 天前
ElementUI常用的组件展示
前端·javascript·elementui
像素之间15 天前
elementui中rules的validator 用法
前端·javascript·elementui