【问题标题】:Google Maps infowindow close button is hidden谷歌地图信息窗口关闭按钮被隐藏
【发布时间】:2013-05-23 07:45:13
【问题描述】:

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

【问题讨论】:

    标签: google-maps


    【解决方案1】:

    已修复,显然 bootstrap.css 与图像冲突,不得不使用这几行额外的 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>
    

    遇到相同问题的任何人都可以使用它来解决您的问题。

    【讨论】:

      【解决方案2】:

      你也可以试试这个:

      max-width: none !important;
      

      这将帮助您处理任何其他规则

      【讨论】:

        【解决方案3】:

        根据您的自定义 CSS,您可能还需要添加 ma​​x-height: none

        img[src*="gstatic.com/"], img[src*="googleapis.com/"] {
            max-width: none !important;
            max-height: none !important;
        }
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2012-10-08
          • 2013-02-21
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2023-03-28
          • 1970-01-01
          相关资源
          最近更新 更多