freemanDG
freemanDG
  • 发布:2016-02-29 13:07
  • 更新:2016-02-29 14:39
  • 阅读:1654

在<header>里添加一个选项卡 用来控制子页面的切换 href不跳转啊?

分类:MUI

<!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" />

<script src="js/mui.min.js"></script>  
<link href="css/mui.min.css" rel="stylesheet"/>  
<script type="text/javascript" charset="utf-8">  
    mui.init();  
</script>  

</head>
<body>
<header class="mui-bar mui-bar-nav"style="height: 60px;">
<a class="mui-icon mui-icon-bars mui-pull-left menua"></a>
<a class="mui-icon mui-icon-plus mui-pull-right adda"></a>
<div style="">
<div class="mui-content" style="width: 150px; height: 50px;margin: 0 auto;">

            <div  class="mui-segmented-control" >  
                <a class="mui-control-item " href="Map.html">  
            地图  
        </a>  
                <a class="mui-control-item mui-active" href="/list.html">  
            列表  
        </a>  
            </div>  
            </div>  
            </div>  
        <!--<button class="mui-btn mui-btn-primary">图</button>  
            <button class="mui-btn mui-btn-primary">表</button>-->  

    </header>  

    <script>  
         mui.init({  
            subpages:[{  
                url:'list.html',  
                id:'list.html',  
            styles:{  
                top:'60px'  
            }  
            }]  
        })  
    </script>  

</body>
</html>

2016-02-29 13:07 负责人:无 分享
已邀请:
DCloud_UNI_FXY

DCloud_UNI_FXY

通过tap事件来跳转

  • 1***@qq.com

    具体怎么操作可以贴一下代码吗?

    2016-08-15 11:56

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