在Google Map InfoWindow中更改背景颜色 [英] Changing background color in Google Map InfoWindow
问题描述
我希望我的Google Map实现中的InfoWindows具有黑色背景色。 backgroundColor不是InfoWindows的可用选项。 请参阅此处。
我在黑色背景和白色文本的内容选项中放置了一个div标签。然而,这仍然呈现一个白色的边框。
有谁知道一种方法来获得完全黑色背景?
<如果你想完全控制背景,但想要InfoWindow的细微处理,那么可以使用 解析方案
您可以使用 InfoBox 从 Google Maps Utility 库。
I want my InfoWindows in my Google Map implementation to have a black background color. "backgroundColor" is not an available option for InfoWindows. See here.
I put a div tag in the content option with a black background and white text. However, that still renders with a white border.
Does anyone know a way to get a completely black background?
Thanks for any help in advance.
If you want complete control over the background but want the niceties of InfoWindow, then you can can use the InfoBox from the Google Maps Utility library.
这篇关于在Google Map InfoWindow中更改背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!