顶部选项卡
Posted 爱丶魔杰
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了顶部选项卡相关的知识,希望对你有一定的参考价值。
<!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>
以上是关于顶部选项卡的主要内容,如果未能解决你的问题,请参考以下文章
有没有办法在 Xamarin.Forms Shell 顶部选项卡中显示图标?