How can I display a full screen google map with jQuery Mobile?

前端 未结 4 2049
無奈伤痛
無奈伤痛 2021-01-18 06:05

The following code displays strange output. I should see a full screen mobile map. But for some reason it shows on just a portion of the screen. I am using jquery.ui

4条回答
  •  鱼传尺愫
    2021-01-18 06:18

    The solution for my mobile website was to set styles position:absolute; width:100%; height:100%; for the canvas div. You can use the top and bottom styles to leave space for toolbars.

提交回复
热议问题