谷歌地图V3无法在Chrome、Firefox中显示

Google Maps V3 is not showing in Chrome, Firefox

本文关键字:Firefox 显示 Chrome V3 谷歌地图      更新时间:2023-09-26

我有这个联系我们的形式与一个谷歌地图V3没有显示

http://www.ehlersattorneys.co.za/contact-us

我添加了新的谷歌api密钥和启用谷歌地图等…我不明白为什么它没有显示地图,有人能帮我一下吗?

奇怪的是,它在Safari中工作得很好。

我认为,你的问题是由/* MAX IMAGE WIDTH */style定义引起的

 /* MAX IMAGE WIDTH */
 img {
    height:auto !important;
    max-width:100% !important;
    -webkit-box-sizing: border-box !important; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box !important;    /* Firefox, other Gecko */
    box-sizing: border-box !important;         /* Opera/IE 8+ */
 }

    max-width:100% !important;        

导致问题。如果删除行或至少删除!important子句,则映射将正常工作。(我试过Chrome)