在使用 JqueryMobile 1.2 和 PhoneGap/Cordova 2.2.0 进行项目时,我遇到了页面转换问题,当我在元素上使用 data-transition= 滑动时,它的工作速度非常慢',如果我使用 data-transition= none 我得到屏幕之间出现黑色闪烁,我在使用 IOS 6.1 的 iphone 4 上工作我已经尝试了所有我发现听到的答案,但没有任何效果,当我使用 data-transition="none" 导航时仍然会出现黑色闪烁
我希望有人可以帮助我'听到的是代码:
<!doctype html>
<html>
<head>
<title> jQuery Mobile Boilerplate - Collapsibles Content</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jQuery Mobile CSS bits -->
<link rel="stylesheet" href="css/jquery.mobile-1.2.0.min.css" />
<!-- if you have a custom theme, add it here -->
<link rel="stylesheet" href="themes/jQuery-Mobile-Boilerplate.css" />
<!-- Custom css -->
<link rel="stylesheet" href="css/custom.css" />
<!-- Javascript includes -->
<script src="js/jquery-1.8.2-min.js"></script>
<script src="js/mobileinit.js"></script>
<script src="js/jquery.mobile-1.2.0.min.js"></script>
<script src="js/application.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<a href="../index.html" data-icon="home">Home</a>
<h1>Collapsible Content</h1>
</div>
<div data-role="content">
<h2>Collapsible Content Blocks</h2>
<div data-role="collapsible">
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Default to open</h2>
<div data-role="collapsible" data-collapsed="false">
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Themed</h2>
<div data-role="collapsible" data-content-theme="c">
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Themed - content only</h2>
<div data-role="collapsible" data-theme="b" data-content-theme="e" >
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Nested Collapsibles</h2>
<div data-role="collapsible" data-collapsed="false" data-theme="e" data-content-theme="c">
<h3>Outer header</h3>
<p>I'm the content inside the main collapsible.</p>
<div data-role="collapsible" data-theme="c" data-content-theme="c">
<h3>I'm a nested collapsible with a child collapsible</h3>
<p>I'm a child collapsible.</p>
<div data-role="collapsible" data-theme="d" data-content-theme="d">
<h3>Nested inside again.</h3>
<p>Three levels deep now.</p>
</div>
</div>
<div data-role="collapsible" data-content-theme="c">
<h3>Collapsed list</h3>
<ul data-role="listview" data-inset="true" data-theme="d">
<li><a href="index.html">red</a></li>
<li><a href="index.html">blue</a></li>
<li><a href="index.html">yellow</a></li>
</ul>
</div><!-- /section 3 -->
</div>
</div>
<div data-role="footer" data-theme="c">
<p>© 2012 - jQuery Mobile Boilerplate</p>
</div>
</div>
</body>
</html>