とを使用したページに全幅のグーグルマップがありheight="100%"
ますwidth="100%"
。私はそれの上にいくつかのcssdivのものを置くことを知りたいです。動作するなどの負の値を使用すると機能することを読みmargin-top: -500px;
ましたが、divの背景に色を割り当てようとすると、マップ上に表示されず、マップの下に表示されますが、そうではありません。私が欲しいもの。これに対する解決策はありますか?コード:
<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?hl=en&ie=UTF8&ll=37.0625,-95.677068&spn=56.506174,79.013672&t=m&z=4&output=embed"></iframe>
<div class="content"> I want this text to be in a div box that has a black background. <br /> </div>
スタイル:
.content {
margin-top: -500px;
width: 390px;
background-color: black;
}