Я разрабатываю приложение Phonegap на основе android sdk и Eclipse. Просто взял код по умолчанию и добавил <meta>
для масштабируемости, но он не позволяет мне увеличивать или уменьшать масштаб в устройстве Android SGS2. (Не проверен на iPhone, потому что я не имею.)viewport - user-scalable = yes не работает
Код выглядит следующим образом:
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport"
content="user-scalable=yes" />
<!--<meta name="viewport"
content="user-scalable=yes,
initial-scale=1,
maximum-scale=4,
minimum-scale=1,
width=device-width,
height=device-height,
target-densitydpi=device-dpi" />
-->
<title>First App</title>
<script src="cordova-2.2.0.js"></script>
<script>
function onLoad(){
document.addEventListener("deviceready",
onDeviceReady, true);
}
function onDeviceReady(){
navigator.notification.alert("PhoneGap is working!!");
}
</script>
</head>
<body onload="onLoad();">
<h1>Welcome to PhoneGap</h1>
<h2>Edit assets/www/index.html</h2>
</body>
</html>