navigator 在开发者工具上显示,但是在真机不显示

发布于 7 年前作者 xiulan0613565 次浏览最后编辑 7 年前来自 ask

<navigator target="miniProgram" hover-class="none"

path=""

open-type="navigate"

extra-data=""

version="develop"

style="position:fixed;bottom:40px;right:20px;z-index:9999;height:80rpx;width:210rpx;border-radius:20rpx;opacity:0.8;background: url(../../imgs/tom_pig.jpg) no-repeat;" app-id="wx3344f6a049f7b1bd">

</navigator>

在开发者工具上可以显示:这个navigator 但是在真机上不显示

1 回复
mluo
mluo1 楼5 年前

你好,目前不支持直接在 background url 使用本地图片,可以通过:


  1. url 换成网络地址

  2. 使用 image 组件