Google地图标记切入了一半的Internet Explorer [英] Google Maps marker cut in half internet explorer

查看:99
本文介绍了Google地图标记切入了一半的Internet Explorer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网络浏览器中,我的谷歌地图标记图标出现了一个奇怪的问题。我的所有标记都显示了一半的缩减,并且移动了一半以上。



即使用谷歌的演示代码。所以它必须是奇怪的,我在其他地方使用样式或jQuery,但我不知道是什么。有没有人有过这个问题?

解决方案

我有类似的问题。
问题在于每个标记图标都继承了大于0的边距,我通过在地图div中为所有img设置边距为零来解决此问题。

 < style type =text / css> 
#map_canvas img {
margin:0px
}
< / style>


I'm having a weird problem with my google maps marker icons in internet explorer. All my markers are showing up cut in half doubled and shifted over 50 %.

that is using the demo code from google. So it must be something weird i'm doing elsewhere with styles or jquery, but i don't know what. Has anyone had this problem before?

解决方案

I had a similar issue. The problem being that each marker icon inherited a margin>0, I solved the issue by setting the margin to zero for all img in the map div.

<style type="text/css">
   #map_canvas img {
       margin: 0px
   }
</style>

这篇关于Google地图标记切入了一半的Internet Explorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆