<cover-view class="share-cover-view">
<button class = "share-button" style="background-image:url(https://csdnimg.cn/cdn/content-toolbar/csdn-logo_.png?v=20190924.1)"></button>
</cover-view>
<-- 样式代码 -->
share-cover-view{
position: absolute;
top:100px;
right: 30px;
width: 100px;
height: 100px;
.share-button{
width:100px;
height: 100px;
}
}
使用的是网络图片。本地图片也不行。
下图为开发者工具 SDKVersion: "2.10.1" version: "7.0.4" system: "iOS 10.0.1"
- "
下图为真机(iphone X) SDKVersion 2.10.1 微信版本号 7.0.10 system: "iOS 13.3.1"
试了好久了。就是不行!
map已经实现了同层,可试下view
<view class ="cover-view-view">
<button class = "share-button" style="background-image:url(https://csdnimg.cn/cdn/content-toolbar/csdn-logo_.png?v=20190924.1)"></button>
</view>
<button class="share-button"> <cover-image src="https://csdnimg.cn/cdn/content-toolbar/csdn-logo_.png?v=20190924.1"></cover-image> </button>
这样试下