武哥
武哥
  • 发布:2015-01-22 11:23
  • 更新:2015-01-22 11:23
  • 阅读:1606

tab切换

分类:MUI
mui

想做一个tab切换,切换的时候给footer下的a标签添加样式click!不会用tap之类的,求大神帮忙实现最好可以滑动切换的。。

<!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 rel="stylesheet" href="css/mine.css" />
<style type="text/css">
body{background: #efeff4;}
</style>
<script type="text/javascript" charset="utf-8">
mui.init();
</script>
</head>
<body>
<header class="mui-bar mui-bar-nav">
<a class="mui-icon mui-icon-back mui-pull-left"></a>
<a id="info" class="mui-icon mui-icon-search mui-pull-right" style="color: #fff;"></a>
<h1 class="mui-title">MY APP</h1>
</header>
<footer class="mui-bar mui-bar-footer">
<a href="#index" class="click"><i class="mui-icon mui-icon-home mui-block"></i>首页</a>
<a href="#classify"><i class="mui-icon mui-icon-bars mui-block"></i>分类</a>
<a href="#recommend"><i class="mui-icon mui-icon-star mui-block"></i>推荐</a>
<a href="#mine"><i class="mui-icon mui-icon-person mui-block"></i>我的</a>
</footer>
<div class="mui-content" style="text-align: center;">
<div id="page1">
首页
</div>
<div id="page1" style="display: none;">
分类
</div>
<div id="page1" style="display: none;">
推荐
</div>
<div id="page1" style="display: none;">
我的
</div>
</div>
</body>
</html>

2015-01-22 11:23 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复