收藏
回答

cover-view内使用图片 button 无法显示在真机上?

 <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"

  1. "


下图为真机(iphone X) SDKVersion 2.10.1 微信版本号 7.0.10 system"iOS 13.3.1"


试了好久了。就是不行!




回答关注问题邀请回答
收藏

2 个回答

  • 是小白啊
    是小白啊
    2020-02-17

    map已经实现了同层,可试下view

    2020-02-17
    有用 1
    回复 1
    • For the £rust💍
      For the £rust💍
      2020-02-17
      我用view嵌套button也成功了!感谢!
      2020-02-17
      回复
  • ᥬ[吃瓜]᭄
    ᥬ[吃瓜]᭄
    2020-02-17
    <button class="share-button">
        <cover-image src="https://csdnimg.cn/cdn/content-toolbar/csdn-logo_.png?v=20190924.1"></cover-image>
    </button>
    
    

    这样试下

    2020-02-17
    有用 1
    回复 1
    • For the £rust💍
      For the £rust💍
      2020-02-17
      太感谢了!问题解决了
      2020-02-17
      回复
登录 后发表内容
问题标签