google maps in jquery mobile

前端 未结 4 1530
栀梦
栀梦 2020-12-28 20:06

When showing a google map in jquery mobile it appears (after reading the forums) that code like the following is required:

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 20:28

    Well here how I did it and it worked for me.

    Options

    Location

    Copyright © 2011.

    Then add these to your CSS File.

    .classHeader{
    height:10% !important;
    }
    
    .classFooter{
    height:10% !important;
    }
    
    #map_canvas{
    padding-top:10%;
    padding-bottom:10%;
    height:auto;
    position:absolute;
    width:100%;
    height:88%;
    max-height:1600px;
    overflow:hidden;
    display:block;
    }
    

    This is working perfectly for me.

提交回复
热议问题