收藏
回答

真机样式中的图片正常,image标签的图片全部没显示了,是什么问题?

微信build后,图片在电脑中正常,手机中只能展示background-image的图片,image标签的图片全部没显示了

<!--开发模式全部正常-->
<!--真机预览这个背景图正常显示-->
<div
  style="
    width: 200px;
    height: 200px;
    background-image: url('http://xxx.jpg');
  "
></div>
<!--真机预览image标签的没有显示-->
<image
  src="http://xxx.jpg"
  mode="aspectFit"
  style="width: calc(100vw - 48px); height: 150px"
></image>



回答关注问题邀请回答
收藏
登录 后发表内容