Ustaw pojemnik Google Maps DIV szerokość i wysokość 100%

Załadowałem Google Maps API v3 i wydrukowałem Google Map wdiv. Ale po ustawieniu szerokości i wysokości na 100% i automatycznej nie widzę mapy.

Oto fragment kodu HTML.

<code><!-- Maps Container -->
<div id="map_canvas" style="height:100%;width:100px;margin:0 auto;"></div>
</code>

Czy istnieje sposób na rozwiązanie tego problemu?

questionAnswers(11)

yourAnswerToTheQuestion