cover-view 在真机上不显示,调试可以看到位置但是就是不显示

发布于 7 年前作者 yan9419540 次浏览最后编辑 7 年前来自 ask

<view class=“show_map”>

<map id=“map”

:longitude=“longitude

:latitude=“latitude

scale=“11”

:markers=“markers

@markertap=“markertap

style=“width: 100%; height: 500rpx;”>

<cover-view class=“control”>

<cover-image class=“img” style=“width:60rpx;height:60rpx” src=“…/…/…/static/img/here.png”/>

</cover-view>

</map>

</view>

.control {

position: absolute;

bottom: 10rpx;

}

2 回复
weijin
weijin1 楼6 年前

已解决,图片路径改为绝对路径

sdu
sdu2 楼6 年前

z-index?