0
我是新來的HTML。我有一張桌子和一張地圖畫布(Google Maps API)。我試圖在地圖畫布下添加一個按鈕來將地圖的縮放/中心設置爲默認。問題是我不知道定位它的正確語法。如何在Google地圖的圖片下添加按鈕?
<body>
<div>
<table border="1", id="myTable", cellpadding="10", style="float:left">
<tr>
<th>Name of Business</th>
<th>Latitude</th>
<th>Longitude</th>
<th>Center Map</th>
</tr>
</table>
<div id="map_canvas" style="float:right;width:1024px;height:600px;border:black">
</div>
<button onclick="map.setCenter(myOptions.center), map.setZoom(9)", style="float:bottom">Recenter Map</button>
</div>
</body>
現在「接收者地圖」按鈕位於頂部,位於表格和地圖畫布之間。
有人編輯了我原來的帖子 – cYn
@cYn:好的。我刪除了標籤。 – RASG
Did you mean