页面中的cover-image为什么不会显示,在开发者工具可以显示 ,设置了宽
发布于 6 年前 作者 tgao 9151 次浏览 来自 问答

页面中的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;

}

工具效果

手机效果

2 回复

我要显示用户头像,但iOS只会显示一次,之后就不显示了。

已解决  我把路径改为 "

/images/indicate.png

"

就没有问题了  不知道为什么

回到顶部