zoukankan      html  css  js  c++  java
  • mui 底部导航栏的实现

    mui 底部导航栏的实现

    <nav class="mui-bar mui-bar-tab">
        <a id="display" class="mui-tab-item {if $_GPC['op'] == 'display'}mui-active{/if}"
           href="{php echo $this->createMobileUrl('pj_goods', array('op' => 'display'))}">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">列表</span>
        </a>
        <a class="mui-tab-item {if $_GPC['op'] == 'detail'}mui-active{/if}" href="">
            <span class="mui-icon mui-icon-info"></span>
            <span class="mui-tab-label">详情</span>
        </a>
        <a id="home" class="mui-tab-item  {if $_GPC['op'] == 'home'}mui-active{/if}"
           href="{php echo $this->createMobileUrl('pj_goods', array('op' => 'home'))}">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">我的</span>
        </a>
    </nav>
    
    <script>
        mui('body').on('tap','a',function(){
            document.location.href = this.href;
        });
    
        $(function () {
            $("#display").click(function () {
                document.location.href = this.href;
            });
            $("#home").click(function () {
                document.location.href = this.href;
            });
        });
    </script>
    
  • 相关阅读:
    web单机优化
    html标签
    html基础
    jenkins api
    cobbler api
    Cobbler安装配置简单使用
    ubuntu 12.04下搭建web服务器(MySQL+PHP+Apache) 教程
    在ubuntu12.04上安装6款顶级漂亮的BURG主题
    Setting up an OpenGL development environment in ubuntu
    c++ list 容器
  • 原文地址:https://www.cnblogs.com/GetcharZp/p/11685759.html
Copyright © 2011-2022 走看看