收藏
回答

cover-view组件button的open-type?

1、cover-view 里面使用button按钮的open-type="share"?要在button里面写入内容,没有内容是无效果的

2、cover-view 里面使用button在右内容情况下在button组件上设置opacity:0。在本地是有效果,在真机预览时opacity没有效果

wxml:

<cover-view class="friend_info_item">

<button class='session_btn' open-type='share'></button>

<cover-view class="friend_handle_icon">

<cover-image src="/images/icon/icon_share2.png" alt=""></cover-image>

</cover-view>

<cover-view class="friend_handle_txt">分享</cover-view>

</cover-view>

wxss:

.friend_info_item .session_btn{

width: 100%;

height: 100%;

position: absolute;

top: 0rpx;

left: 0rpx;

opacity: 0;

}







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

1 个回答

登录 后发表内容
问题标签