.el-dialog__headerbtn { top: 8px !important; background: url('https://你路径资源的url图片') left no-repeat; background-size: cover; } .el-dialog__headerbtn i { content: '修改下面的font-size可以改变图片的大小'; font-size: 25px; visibility: hidden; }