1

我正在尝试覆盖新的 Google Maps 内联样式,以便使用 CSS 应用我自己的样式。我不能使用 Jquery,因为它会与 Mootools 冲突(我正在使用 Joomla)。

问题是左上角的“信息窗口”覆盖了地图的很大一部分(加上点气泡),我想限制它一点,因为给定的 280px 宽度太大了。

使用萤火虫我发现这个:

<div id="featureListPanel" class="b0t70b-haAclf" style="display: block; z-index: 0; position: absolute; left: 0px; top: 144px; width: 280px;"

但我的风格不能超越它:

div#featureListPanel [style] {width: 271px !important;}

我该如何解决这个问题?

PS。我什至试过这个:

body div[class*="b0t70b-haAclf"] {width: 271px !important;}

不走运.. Google Maps Api 是否会阻止我用 CSS 或什么来触摸它?

编辑:有一张图片可以帮助您理解我的意思。用红色包围的是提到的信息窗口。 惹恼谷歌信息窗口

4

1 回答 1

0

div#featureListPanel [style] {width: 271px !important;}[style] 不是有效的 CSS 方式

所以简单地使用这个:

div#featureListPanel {width: 271px !important;}

如果甚至不工作试试这个

body div#featureListPanel [style] {width: 271px !important;}
于 2013-09-29T12:45:23.560 回答