5

这是一个工作版本

http://jsfiddle.net/tH78C/

这是带有 Bootstrap 样式的损坏版本(缩放小部件不再正确显示)

http://jsfiddle.net/3sjAU/

为什么会断?

4

4 回答 4

11

您还可以为单个地图修复此问题,例如:

.googleMapContainer img {
    max-width: none !important;
}
于 2013-03-27T13:03:04.083 回答
4

在 Bootstrap.css第 69 行 max-width: 100%;导致了这个问题。

img {
max-width: 100%; <--
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}

您可以删除它,如果需要再次指定一个新类.newclass {max-width:100%}并将其添加到图像中。

于 2012-05-02T04:53:07.377 回答
0

我修复了这里列出的内容略有不同。

.gm-style img {
    max-width: none;
}
于 2014-11-30T22:22:30.347 回答
0

无需指定新类只需复制此代码

.angular-google-map img {
    max-width: none !important;
}
于 2015-06-10T18:50:53.280 回答