【问题标题】:Google Maps 100% Height谷歌地图 100% 高度
【发布时间】:2012-01-09 16:09:21
【问题描述】:

我正在使用这里的代码:

http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-mobile-example.html#basic_map

我唯一的问题是我找不到如何将地图设为 100% 高度。

以前有人遇到过这个问题吗?

【问题讨论】:

    标签: javascript jquery css google-maps google-maps-api-3


    【解决方案1】:

    您还必须为htmlbody 标签设置height

    html, body { height: 100%; }
    

    this example

    【讨论】:

    • 还应注意margin:0padding:0 css 规则也必须应用于正文标签(在您的示例中)。
    • 嗯,不一定,这取决于你的口味。你不需要这样做,但你可以。
    猜你喜欢
    • 2014-12-09
    • 2015-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-06
    • 1970-01-01
    • 1970-01-01
    • 2016-03-30
    相关资源
    最近更新 更多