页面中的cover-image为什么不会显示,在开发者工具可以显示 ,设置了宽高
<cover-view class=‘indicate {{indicate?“show_indicate”:“hide_indicate”}}’ bindtap=‘indicateTap’>
<cover-image class=‘indicate-img’ src=’…/…/…/images/indicate.png’></cover-image>
<cover-view class=‘indicate-text’>点击右上角“…”可以转发哦!</cover-view>
</cover-view>
/*指示 */
.indicate{
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color:rgba(0, 0, 0, .8);
transition: all .7s;
text-align: right;
}
.show_indicate{
opacity: 1;
/* z-index: 99; */
}
.hide_indicate{
opacity: 0;
z-index: -99;
}
.indicate-text{
color: white;
white-space: pre-wrap;
}
.indicate-img{
display: inline-block;
position: relative;
top: 0;
right:150rpx;
width: 62rpx;
height: 122rpx;
}
工具效果
手机效果