.swiperPic img {
width: 100%;
height: 100%;
/* 这里处理当图片无法显示时,用默认的图片 */
&:after{
content: "";
display: inline-block;
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url("../../assets/imgs/df_bg.png") no-repeat;
background-size: 100% 100%;
background-color: #fff;
}
}
vue 图片加载不到时用默认图片
最新推荐文章于 2024-06-27 09:09:42 发布