this link에서 볼 수 있듯이 페이지 하단에는 Google지도가 포함 된 div가 있습니다. Google지도 영역 내에 빨간색 DIV (.blocktest)를 배치하고 싶습니다. 문제는 빨간색 DIV가지도보다 z 색인 (지도 뒤쪽에 있음)에도 불구하고 표시되지 않는다는 것입니다. 이슈가 뭐야? 감사합니다DIV를 Google지도 DIV에 배치하는 방법은 무엇입니까?
HTML :
<div id="fullcontainer"></div>
<div id="map"><div id="map-canvas"><div class="blocktest">div that should be above the map</div></div></div>
STYLE :
#fullcontainer {
margin-bottom:300px;
position:relative;
z-index:2000;
background: #F2F2F2;
}
.blocktest {
width: 60%;
background: red;
z-index: 30;
position: absolute;
left: 20px;
bottom: 56px;
}
#map {
position:fixed;
z-index:1;
height:400px;
bottom:0;
width:100%;
}
#map, #map-canvas {
width: 100%;
height: 400px;
float: left
}
@Greg'# fullcontainer'에'z-index'를 사용하지 않으려 고합니다. – Praveen