iphone 手机 background 不显示 wxfile:// 开头的图片
发布于 6 年前 作者 rchang 2313 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

iphone 手机 background 不显示 wxfile:// 开头的图片,网络图片,本地图片显示正常。

  • 提供一个最简复现 Demo

bgImage = ‘wxfile://tmp_de1ce238cd779c43069550962e8e5ffd.png’

<view class=“imageView” wx:if="{{page===‘mainPage’}}" style=“height:{{imgViewHeight}}px;background:url(’{{bgImage}}’) center center/auto {{imgViewHeight}}px no-repeat fixed”>

3 回复

经核实,背景图片只支持网络图片和base64格式的图片,临时路径不支持

应该是不支持临时路径

现在也遇到这个问题了,安卓手机上可以,苹果手机就不行,请问这个问题解决了吗。

回到顶部