|
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>地圖</title> <link href="jquer.mobile-1.4.5.min.css" rel="stylesheet" type="text/css"/> <script src="jquery-2.1.4.min.js" type="text/javascript"></script> <script src="jquery.mobile-1.4.5.js" type="text/javascript"></script> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"> </script> <style type="text/css"> #map_div { height: 420px; width: auto; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; border: 5px solid #F00; } </style> <script language="Javascript"> $(function(){ var map_div = document.getElementById("map_div"); var lat = 25.056997; var lng = 121.618062; var latlng = new google.maps.LatLng(lat,lng); var gmap = new google.maps.Map(map_div, { zoom: 17, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }); var mdrker = new google.maps.Marker ({ position: latlng, map: gmap, }); }); </script>
</head> <body>
<div data-role="page" id="home"> <div data-role="header"> <h1>南港展覽館</h1> </div> <div data-role="content"> <div id="map_div"></div> </div> </div> </div> </body> </html> 為甚麼我在瀏覽器上開起會有 用phonegap轉成apk就變成空的了
|