作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个使用 jQuery Mobile 开发并在 PhoneGap 中实现的简单应用程序。它在 iPad 4.3 模拟器中运行良好,但不适用于 iPad 5.0 模拟器和运行 iOS 5 的实际 iPad...
这是 html 文件的头部部分:
<head>
<meta charset="utf-8"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta content="width=device-width,minimum-scale=1,maximum-scale=1" name="viewport"/>
<link rel="apple-touch-icon" href="icon.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="icon.png"/>
<link rel="apple-touch-icon" sizes="114x114" href="icon.png"/>
<title>App demo</title>
<link rel="stylesheet" href="scripts/jquery.mobile-1.0rc2.min.css"/>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="scripts/jquery-1.6.4.min.js"/>
<script type="text/javascript" src="scripts/jquery.mobile-1.0rc2.min.js"/>
<script type="text/javascript" src="scripts/general.js"></script>
<script type="text/javascript" src="scripts/app.js"/>
</head>
最佳答案
This question这里堆栈溢出似乎表明 iOS5 中的 UIWebView 需要外部脚本链接具有实际的结束标记,而不是简单地以“/>”结尾。
尝试将链接更改为:
<script type="text/javascript" src="scripts/jquery-1.6.4.min.js"></script>
关于jquery-mobile - PhoneGap 和 jQuery Mobile 不适用于 iOS 5?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8073567/
我是一名优秀的程序员,十分优秀!