这是我的html代码:
<!DOCTYPE html>
<!--
test app
-->
<html>
<head>
<title>jQuery Mobile page</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" charset="utf-8" href="http://darrenvenn.com/greenie.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile.structure-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<title>test app</title>
</head>
<body>
<div data-role="page" data-theme="a">
<div data-role="header" data-position="inline">
<h1>Sample Header</h1>
</div>
<div data-role="content" data-theme="a">
<input type="button" value="selection 1" onclick=""/>
<p>
<input type="button" value="selection 2" onclick="" />
</p><p>
<input type="button" value="selection 3" onclick="" />
</p><p>
<input type="button" value="selection 4" onclick="" />
</p>
</div>
<script type="text/javascript" src="cordova-2.2.0.js"></script>
</div>
</body>
</html>
当我从浏览器运行它时,它发现 greenie.min.css 文件很好。当我在 PhoneGap/Xcode 中运行它时,它永远不会加载 css。想知道为什么我的 CSS 在浏览器中加载正常时不会加载到 PhoneGap 中。我尝试了许多不同的方式,使用普通版本和最小版本,在本地加载和从 url 加载,没有任何效果,没有。
这应该很简单!...