나는 내가 필요로하는 laiyng 이상의 콘텐츠 블록이있는 Google지도가 있습니다.Google지도 아래 위치 콘텐츠
Google지도 아래에 추가 콘텐츠를 추가 할 수 있어야합니다.하지만 진행중인 div 컨테이너를지도 아래에 배치하는 방법을 알아낼 수 없습니다.
정적 인 위치 설정을 시도했지만 작동하지 않습니까?
다음은 내 codepen입니다 : -
http://codepen.io/dyk3r5/pen/LRmWbq
HTML.
<div id="content">
<iframe id="gmap" width="600" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/?ie=UTF8&ll=55.886721,-4.33651&spn=0.011553,0.027466&z=15&output=embed"></iframe>
<div class="container overlap">
<h1>Content</h1>
</div>
</div>
<div class="moreContent">
<p>I would like to sit below the google map!</p>
<div>
CSS.
#gmap {
position:absolute;top:0;left:0;z-index:1;
}
.overlap{
position: relative;
z-index:2;
background: white;
height : 200px;
width : 200px;
margin-top: 100px;
}
.moreContent{
/* How doi position this container? */
}
해당 div는 내 컴퓨터에서 Firefox 및 Chrome의지도 아래에 있습니다. – Rob