mui 底部导航栏

mui 底部导航栏

 

<nav class="mui-bar mui-bar-tab " id="nav">
    <a class="mui-tab-item mui-active" id="a1">
        <span class="mui-icon mui-icon-home"></span>
        <span class="mui-tab-label">首页</span>
    </a>
    <a class="mui-tab-item " href="http://www.baidu.com" id="a2">
        <span class="mui-icon mui-icon-email"><span class="mui-badge">9</span></span>
        <span class="mui-tab-label">消息</span>
    </a>
    <a class="mui-tab-item " id="a3">
        <span class="mui-icon mui-icon-email"><span class="mui-badge">9</span></span>
        <span class="mui-tab-label">消息</span>
    </a>
</nav>

<!-- 解决页面不能跳转问题 -->
<script>
    mui('body').on('tap','a',function(){
        document.location.href = this.href;
    });
</script>

 

posted @ 2019-11-08 11:36  GetcharZp  阅读(279)  评论(0编辑  收藏  举报