Google Maps with Bootstrap not responsive

前端 未结 9 802
予麋鹿
予麋鹿 2021-01-30 02:11

I\'m using bootstrap and I embedded Google Maps API 3.

#map_canvas isn\'t responsive; it\'s a fixed width.

Also, if I use height: auto

9条回答
  •  独厮守ぢ
    2021-01-30 02:54

    You could give the span6 class a width and height, then give map_canvas a width and height of 100%.

提交回复
热议问题