Set Google Maps Container DIV width and height 100%

后端 未结 12 950
遇见更好的自我
遇见更好的自我 2020-11-28 04:45

I loaded Google Maps API v3 and print Google Map in div. But when set width & height to 100% and auto I can\'t see the Map.

Here is HTML code snippe

12条回答
  •  独厮守ぢ
    2020-11-28 05:35

    Better late than never! I made mine a class:

    .map
    {
        position:absolute;
        top:64px;
        width:1100px;
        height:735px;
        overflow:hidden;
        border:1px solid rgb(211,211,211);
        border-radius:3px;
    }
    

    and then

提交回复
热议问题