微信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>