0

I have been trying to hide Google Maps on my site (which is inside a div). I used the following in a "send" Button event called: function showPoint()

document.getElementById('GMap1').style.display = 'block';

But nothing happens when I click the send button which is suppose to execute this event.

I was able to hide the map with:

<div id="GMap1" style="height: 300px; width:300px; visibility:hidden;"  ></div> 

Only problem is displaying it.

4

1 回答 1

1

您必须修改visibility,而不是display

document.getElementById('GMap1').style.visibility= 'visible';
于 2013-08-29T22:49:38.427 回答