代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<script src="js/mui.min.js"></script>
<link href="css/mui.min.css" rel="stylesheet"/>
<link href="css/iconfont.css" rel="stylesheet" />
<script type="text/javascript" charset="utf-8">
mui.init();
</script>
</head>
<body>
<!-- 主界面菜单同时移动 -->
<!-- 侧滑导航根容器 -->
<div class="mui-off-canvas-wrap mui-draggable">
<!-- 主页面容器 -->
<div class="mui-inner-wrap">
<!-- 菜单容器 -->
<aside class="mui-off-canvas-left" id="offCanvasSide">
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
<!-- 菜单具体展示内容 -->
</div>
</div>
</aside>
<!-- 主页面标题 -->
<nav class="mui-bar mui-bar-tab">
<a class="mui-tab-item mui-active" href="home.html">
<span class="mui-icon iconfont icon-4banshichu"></span>
<span class="mui-tab-label">首页</span>
</a>
<a class="mui-tab-item" href="tg.html">
<span class="mui-icon iconfont icon-jiediandengdai"></span>
<span class="mui-tab-label">推广</span>
</a>
<a class="mui-tab-item mui-active" href="gouwuche.html">
<span class="mui-icon iconfont icon-icongouwuche"></span>
<span class="mui-tab-label">购物车</span>
</a>
<a class="mui-tab-item" href="gerenzhongxin.html">
<span class="mui-icon iconfont icon-huiyuanguanli"></span>
<span class="mui-tab-label">个人中心</span>
</a>
</nav>
<!-- 主页面内容容器 -->
<div class="mui-content mui-scroll-wrapper">
<div class="mui-scroll">
<!-- 主界面具体展示内容 -->
</div>
<script src="js/castapp.js"></script>
<script>
//2、初始化:把页面没有准备好的东西提前准备好
ca.init();
var pathArray = ['home.html','tg.html','gouwuche.html','gerenzhongxin.html'];
castapp.tabBar(pathArray);
</script>
</div>
<div class="mui-off-canvas-backdrop"></div>
</div>
</div>
</body>
</html>
0 个回复