cover-view里的元素在微信开发者工具里能悬浮显示于map上真机无法显示
发布于 5 年前 作者 junyi 8345 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo

wxml:

<map id=“map” wx:if="{{mapShow}}" longitude="{{map.longitude}}" latitude="{{map.latitude}}" scale=“14” controls="{{controls}}" bindcontroltap=“controltap” markers="{{map.markers}}" bindmarkertap=“openTaskDetail” bindcallouttap=“openTaskDetail” polyline="{{polyline}}" bindregionchange=“regionchange” show-location style=“width: 100%; height: {{map.height}}px;”></map>

<cover-view class=“cover-view”>

<view style=“width:300rpx;background-color:#fff;”>

<i-icon type=“activity” size=“28” color="#80848f" />

</view>

</cover-view>

wxss:

.cover-view {

position: absolute;

top: calc(50% - 150rpx);

left: calc(50% - 300rpx);

/* opacity: .7; */

}

回到顶部