In my jQM application I have a header navbar which I want to keep fixed. Because of the issue with fixed headers in jQM, I decided to have a structure like this:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
<body style="overflow:hidden;">
<div data-role="navbar">
<ul>
<li><a href="#page1" class="ui-btn-active">One</a></li>
<li><a href="#page2">Two</a></li>
</ul>
</div>
<div id="page1" data-role="page" style="top:80px">
<div data-role="content">
Page1
<input type="button" value="Click"/>
</div>
</div>
<div id="page2" data-role="page" style="top:80px">
<div data-role="content">
Page2
<input type="button" value="Click2"/>
</div>
</div>
</body>
</html>
意图是把bar锁定在上。 当你点击各自的表格时,应当装上该页。 自2006年以来 我为<代码>/数据-格式”网页()提供了<条码>。 但是,它并非按预期行事,因为data-role=“navbar”
风格没有在头巾上应用。
任何使其发挥作用的解决办法? 提前感谢。
页: 1