如何为 Google 地图信息窗口设置特定高度?
问题描述:
我知道可以使用maxWidth"设置最大宽度,我想知道为什么没有maxHeight"选项.
I know the max width can be set with 'maxWidth', I wonder why isn't there a 'maxHeight' option.
答
这就是您要找的吗?如何设置谷歌地图标记的信息窗口最大高度?
只需将内容放入一个div带滚动条:
simply place the contents into a div with a scrollbar:
div.infowindow {
max-height:250px;
overflow-y:auto;
}