顶部选项卡
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello MUI</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mui.min.css">
</head>
<body>
<header class="mui-bar mui-bar-nav">
<h1 class="mui-title">商家列表</h1>
</header>
<div class="mui-content">
<div id="slider" class="mui-slider">
<div id="sliderSegmentedControl" class="mui-segmented-control">
<a class="mui-control-item mui-active" href="#item1mobile">
所有商家
</a>
<a class="mui-control-item" href="#item2mobile">
好评优先
</a>
<a class="mui-control-item" href="#item3mobile">
距离最近
</a>
</div>
<div class="mui-content-padded">
<div id="item1mobile" class="mui-control-content mui-active">
<ul class="mui-table-view mui-table-view-chevron">
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="images/qihoo.png">
<div class="mui-media-body">
<span style="font-size: 15px;">龙宫-小伍餐馆<br>地址:龙宫-商业街</span>
<p class="span-price mui-pull-right">距离22km</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="images/qihoo.png">
<div class="mui-media-body">
<span style="font-size: 15px;">龙宫-罗记牛肉馆<br>地址:龙宫-商业街</span>
<p class="span-price mui-pull-right">距离25km</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="images/qihoo.png">
<div class="mui-media-body">
<span style="font-size: 15px;">龙宫-鑫龙客栈<br>地址:龙宫-马头村</span>
<p class="span-price mui-pull-right">距离25km</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="images/qihoo.png">
<div class="mui-media-body">
<span style="font-size: 15px;">龙宫-好口福食府<br>地址:龙宫-马头村</span>
<p class="span-price mui-pull-right">距离0km</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="images/qihoo.png">
<div class="mui-media-body">
<span style="font-size: 15px;">龙宫-福源布依山庄<br>地址:龙宫-马头村</span>
<p class="span-price mui-pull-right">距离22km</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="images/qihoo.png">
<div class="mui-media-body">
<span style="font-size: 15px;">龙宫-布依脆香狗肉馆<br>地址:龙宫-风情街</span>
<p class="span-price mui-pull-right">距离11585km</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="images/qihoo.png">
<div class="mui-media-body">
<span style="font-size: 15px;">龙宫-小伍餐馆<br>地址:龙宫-商业街</span>
<p class="span-price mui-pull-right">距离22km</p>
</div>
</a>
</li>
</ul>
</div>
<div id="item2mobile" class="mui-control-content mui-active">
</div>
<div id="item3mobile" class="mui-control-content mui-active">
</div>
</div>
</div>
</div>
<script src="js/mui.min.js"></script>
<script src="js/webviewGroup.js" type="text/javascript" charset="utf-8"></script>
<script>
mui.init();
</script>
</body>
</html>
但是有一个问题。导航跟着内容往下移动的