如何为谷歌地图信息窗口特定的高度? [英] How to set a specific height for Google Maps infowindow?
本文介绍了如何为谷歌地图信息窗口特定的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我所知道的最大宽度可以用'了maxWidth进行设置,我不知道为什么是不是有'了maxHeight'选项。
解决方案
能不能你在找什么? <一href=\"http://stackoverflow.com/questions/919659/how-to-set-google-maps-markers-infowindow-max-height\">How设置谷歌地图标记的信息窗口最大高度?
只需将内容放入一个div
用滚动条:
块引用>div.infowindow {
最大高度:250像素;
溢出-Y:汽车;
}I know the max width can be set with 'maxWidth', I wonder why isn't there a 'maxHeight' option.
解决方案Can it be what you're looking for ? How to set Google map’s marker’s infowindow max height?
simply place the contents into a div with a scrollbar:
div.infowindow { max-height:250px; overflow-y:auto; }
这篇关于如何为谷歌地图信息窗口特定的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文