【发布时间】:2017-08-08 05:48:52
【问题描述】:
我使用谷歌地图 API。
当我使用时
<div id="googleMap" style="width:100%!important; min-height:400px!important; max-height:100%!important;"></div>
标记的位置向右移动。
但是当我使用
<div id="googleMap" style="width:400px!important; min-height:400px!important; max-height:100%!important;"></div>
显示正常。
我需要 100% 的宽度和标记才能在中心看到。 怎么做?我想CSS应该发挥它的作用,但我不知道如何调整它。
谢谢!
【问题讨论】:
标签: css google-maps google-maps-markers