为什么Google地图标记和InfoWindow不居中?

我用这个代码制作一张地图

var map; var myOptions = { center: new google.maps.LatLng(-31.403759,-64.174232), zoom: 12, panControl: true, zoomControl: true, mapTypeControl: true, scaleControl: true, streetViewControl: true, overviewMapControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; function iniciar() { map = new google.maps.Map(document.getElementById("map"),myOptions); } function marcar(lat, lng) { var contentString = '<div id="content">'+ '<div id="siteNotice">'+ '</div>'+ '<h1 id="firstHeading" class="firstHeading">Uluru</h1>'+ '<div id="bodyContent">'+ '<p><b>Uluru</b>, also referred to as <b>Ayers Rock</b>, is a large ' + 'sandstone rock formation in the southern part of the '+ 'Northern Territory, central Australia. It lies 335 km (208 mi) '+ 'south west of the nearest large town, Alice Springs; 450 km '+ '(280 mi) by road. Kata Tjuta and Uluru are the two major '+ 'features of the Uluru - Kata Tjuta National Park. Uluru is '+ 'sacred to the Pitjantjatjara and Yankunytjatjara, the '+ 'Aboriginal people of the area. It has many springs, waterholes, '+ 'rock caves and ancient paintings. Uluru is listed as a World '+ 'Heritage Site.</p>'+ '<p>Attribution: Uluru, <a href="http://en.wikipedia.org/w/index.php?title=Uluru&oldid=297882194">'+ 'http://en.wikipedia.org/w/index.php?title=Uluru</a> (last visited June 22, 2009).</p>'+ '</div>'+ '</div>'; var infowindow = new google.maps.InfoWindow({ content: contentString }); var location=new google.maps.LatLng(lat,lng); var marker = new google.maps.Marker({ position: location, map: maps }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); } 

当我尝试点击标记时,它们被去标记,所以当我点击标记的中心时,什么都不会发生。 但是几厘米下来,光标就会出现,就像标记在那一点上一样。

所以地图不居中,标记出现在真实的坐标上,但是我必须点击标记点击2厘米以点击标记。

这是为什么?? 有其他人有这种情况吗?

问题是身体…在我的CSS我放

 body{ zoom:0.9; margin:0; padding:0; width:100%; } 

缩放影响谷歌地图删除缩放校准标记….谢谢大家! 我希望这个问题解决了其他类似的问题

和我的英文不好打! ejejej