微信小程序解决多个图片排列有缝隙
方案一 flex布局
<view class="vip-img-wrap"> <image src="" style="width:100%;height:1163rpx"></image> <image src="" style="width:100%;height:1163rpx"></image> <image src="" style="width:100%;height:1163rpx"></image> <image src="" style="width:100%;height:1163rpx"></image> <image src="" style="width:100%;height:1163rpx"></image> </view>.vip-img-wrap{ display: flex; flex-direction: column;}方案二
给image设置一个margin-top,为负值
image{ margin-top:-12rpx}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

