element-ui中el-image加载图片自定义loading

.el-image__placeholder是加载出图片前显示的div,代码如下

:deep(.el-image__placeholder) {
    background: url('@/assets/img/carbg.png') no-repeat 50% 50%;
    background-size: 50%;
    width: 100%;
    height: 100%;
}

你可能感兴趣的:(Vue3.0,vue.js,elementui,前端)