ios 和 android图片显示位置的异常
发布于 5 年前 作者 caiqiang 12928 次浏览 来自 问答

在ios上面是这个样子,但是在android上面是正常的,模板的代码如下:

<template name=“imgLoader”>

  <view wx:for="{{userChooseedPictureList}}" wx:key="*this" style=“display:flex;”>

    <image mode=" scaleToFill" src="{{item}}" data-src="{{item}}" bindload="_imgOnLoad" style=“width:140rpx;height:140rpx;margin-right:30rpx;margin-bottom:10rpx” bindtouchstart=“previewImgListener” />

    <image class=“deleteView” src="…/…/resource/images/description/inquiry_pic_delete.png" style=“position:absolute;height:30rpx;width:30rpx;margin-left:125rpx;” bindtouchstart=“deleteImage” data-src="{{item}}">

    </image>

  </view>

</template>

{{userChooseedPictureList}}:存放的是图片;请问一下这个问题是什么原因导致的呢?我应该怎么去处理这个问题呢?

回到顶部