0
我在应用程序浏览器中有一个应用程序,它显示了一个使用intel xdk的网站。在应用程序浏览器不会加载
网站加载在模拟器和我的Windows手机上的应用程序浏览器(但图像不显示),但它不会加载到我的iPad上。屏幕保持空白。
我的代码:
<!DOCTYPE html>
<html>
<!-- * Please see the included README.md file for license terms and conditions. -->
<head>
<title>Window.open</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<!-- see http://webdesign.tutsplus.com/tutorials/htmlcss- tutorials/quick-tip-dont-forget-the-viewport-meta-tag -->
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0;"/>
<style>
/* following two viewport lines are equivalent to meta viewport statement above, needed for Windows */
/* see http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html and http://dev.w3.org/csswg/css-device-adapt/ */
@-ms-viewport { width: 100vw ; min-zoom: 100% ; zoom: 100% ; } @viewport { width: 100vw ; min-zoom: 100% zoom: 100% ; }
@-ms-viewport { user-zoom: fixed ; min-zoom: 100% ; } @viewport { user-zoom: fixed ; min-zoom: 100% ;
</style>
<!-- Uncomment "phantom" cordova.js script if you convert your "Standard HTML5" project into a "Cordova" project. -->
<!-- <script src="cordova.js"></script> --> <!-- phantom library, needed for Cordova api calls, added during build -->
<script src="js/app.js"></script> <!-- recommended location of your JavaScript code relative to other JS files -->
<script src="xdk/init-dev.js"></script> <!-- normalizes device and document ready events, see README for details -->
<script src="cordova.js"></script>
<script>
function openwin(){
window.open('http://www.stackoverflow.com', '_blank', '');
}
</script>
</head>
<body onload="openwin()">window open>
</body>
</html>
感谢
你有哪个iOS版本?使用vw的宽度定义在iOS 6和7中有一些问题,并且早些时候根本不可用。当然只适用于iOS 8。 – mico
我的测试设备是运行IOS8的iPad,它是iPad 2。 –