Google地图infowindow关闭按钮处于隐藏状态 [英] Google Maps infowindow close button is hidden

查看:363
本文介绍了Google地图infowindow关闭按钮处于隐藏状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站中使用了带有多个标记和多个infowindows的Google地图。不知何故,关闭按钮(小x)保持隐藏在infowindow内,但如果点击它应该显示的位置,则可以工作。如何解决这个问题?

I used Google Maps in my website with multiple markers and multiple infowindows. Somehow the the close buttons (the little x) stays hidden inside the infowindow, but works if clicked at the position where it should be displayed. How to fix this?

推荐答案

修正了它,显然bootstrap.css与图像冲突,不得不使用这些额外的行css

fixed it, apparently bootstrap.css was conflicting with the images and had to use these few extra lines of css

<style type="text/css">
/** FIX for Bootstrap and Google Maps Info window styes problem **/
img[src*="gstatic.com/"], img[src*="googleapis.com/"] {
max-width: none;
}
</style>

任何面临相同问题的人都可以使用它解决您的问题。

anyone facing the same problem may solve your issue using this.

这篇关于Google地图infowindow关闭按钮处于隐藏状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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