<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem 。这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem 。这将有助于其他人回答问题。
关闭 7 年前。
我会说我有一个相当简单的问题,这让我抓狂。在着陆页底部的客户网页 http://alminde-akupunktur.dk/ 上,我使用 Google map 作为背景。在我更新 Google Maps API 后, map 变灰了,我一直没有解决这个问题,控件和标记仍然显示。
有人可以指出问题所在的正确方向吗?是我的 CSS 干扰了 Google map 的呈现方式吗?
提前致谢
最佳答案
这是一个 CSS 问题,由 http://alminde-akupunktur.dk/wp-content/themes/Akupunkturklinikken/assets/css/style.css 中 img
的 max-height:100%
设置强制执行(此规则也会影响 map 图 block )
将此规则添加到您的 CSS:
.gm-style img{max-height:none;}
关于javascript - 谷歌地图灰色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34565943/