I am a newbie to Google Maps. I have started with their "Hello World" code, which has the following:
<body onload="initialize()">
<div id="map_canvas" style="width:100%; height:100%"></div>
</body>
which of course works fine. But, if I want to wrap their div in another div (so I can set various container styles), the map doesn't display at all:
<body onload="initialize()">
<div>
<div id="map_canvas" style="width:100%; height:100%"></div>
</div>
</body>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…