工具和安卓端正常,ios端地图浮动层滑动穿透,如何解决?
[图片] 正常效果(开发者工具正常,安卓端正常) iPhone效果 [图片] wxml <view class="container">
<view class="body">
<view class='float'></view>
</view>
<map class="map" name="map"></map>
</view>
wxss
.container{
position: relative;
height: 70vh;
width: 100vw;
margin-top: 10vh;
overflow: hidden;
}
.map{
position: absolute;
top: 0;
height: 100%;
width: 100%;
}
.body{
position: relative;
height: 100%;
width: 100%;
overflow-y: scroll;
background: red;
}
.float{
position: absolute;
z-index:2;
margin-top: 30vh;
background: rgba(251, 0, 0, 0.411);
width: 100%;
height: 100vh;
}