滚动覆盖另一个div的div

时间:2018-06-30 21:47:25

标签: html css

我有一个容器div,里面有两个div。

.class {
  height: 100%;
  width: 100%;
  position: relative;
}

.circle {
  position: absolute;
  height: 50%;
  width: 50%;
  border-radius: 50%;
  border: 2px solid black;
  background: #82CAFF;
}

.map {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
}
<div class="container">
  <div class="circle"></div>
  <div class="map"></div>
</div>

通过此设置,我在上面有一个地图和一个圆圈。我想使地图即使在覆盖圆圈的情况下仍可滚动。有什么建议吗?谢谢。

0 个答案:

没有答案
相关问题