我试图获得一个全屏运行所有页面的网站,我已经看过这里:Safari中的iPad WebApp全屏,然后我的索引页面很好地填满了屏幕,但每当我点击链接到另一个页面时,即使该页面全部使用元标记进行设置,它将铬条拉回来并且所有对齐都会消失.
必须有一种方式,或者是在后期版本中修复的safari限制.
我正在尝试组合一个应用程序,我可以在其中查询谷歌方向服务,存储结果以构建缓存然后根据需要呈现方向.
我可以获取方向数据并将其存储在数据库中就好了,这一切都很好,现在当我在地图上渲染方向时,我的javascript真的让我失望了.(strData)是一个包含数据库中json格式化方向的字符串.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="map.aspx.cs" Inherits="panto" %>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps JavaScript API v3 Example: Directions Simple</title>
<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var directionDisplay;
var directionsService = new google.maps.DirectionsService();
var map;
function initialize() {
directionsDisplay = new google.maps.DirectionsRenderer();
var chicago = new google.maps.LatLng(41.850033, -87.6500523);
var myOptions = {
zoom: 7,
mapTypeId: google.maps.MapTypeId.ROADMAP,
center: chicago
}
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
directionsDisplay.setMap(map);
directionsDisplay.setDirections(<%= strData …Run Code Online (Sandbox Code Playgroud)