Ich habe eine vollständige Google-Karte auf einer Seite mit height="100%"
und width="100%"
. Ich möchte wissen, setzen einige Css div Sachen oben davon. Ich lese, dass die Verwendung von negativen Werten wie margin-top: -500px;
funktioniert, und sie tun, aber wenn ich versuche, dem Hintergrund des div eine Farbe zuzuordnen, wird es nicht über der Karte angezeigt, es wird darunter angezeigt, was nicht t was ich überhaupt will. Gibt es dafür eine Lösung? Code:Full-Width Google Map und CSS
<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>
Stil:
.content {
margin-top: -500px;
width: 390px;
background-color: black;
}
Hier das Update ist [Set Google Maps Container DIV Breite und Höhe 100%] (http://StackOverflow.com/a/18147172/782535) –