0
点赞
收藏
分享

微信扫一扫

微信小程序多张image图片排列有空隙解决方案

菜菜捞捞 2022-09-22 阅读 171


 


.det-pics-w image {
width: 100%;
min-height: 630rpx;
}

.det-pics-w {
position: relative;
}

第一种解决方案:flex

.det-pics-w image {
width: 100%;
min-height: 630rpx;
}

.det-pics-w {
position: relative;
display: flex;
flex-direction: column;
}

第二种解决方式:margin-top负值

.det-pics-w image {
width: 100%;
min-height: 630rpx;
margin-top: -12rpx;
}

.det-pics-w {
position: relative;
}

两种都可以去掉这个间隙。效果如下

微信小程序多张image图片排列有空隙解决方案_解决方案

 

 

QQ群:  1102727334

举报

相关推荐

0 条评论