使elementUI的dialog上下左右居中

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
.el-dialog{
        display: flex;
        flex-direction: column;
        margin:0 !important;
        position:absolute;
        top:50%;
        left:50%;
        transform:translate(-50%,-50%);
    }

    .el-dialog .el-dialog__body{
        flex:1;
        overflow: auto;
    }
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy