单击按钮后引导菜单没有隐藏?

时间:2015-10-26 15:49:23

标签: javascript jquery html css twitter-bootstrap

这是网站here

当我们查看最小化模式时,单击按钮后菜单会切换为ON,但是当我们点击按钮增益时,它不会关闭?

如何使这项工作?

      <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> 
      <div class="container">
      <div class="navbar-header">
        <!-- FOR MOBILE VIEW COLLAPSED BUTTON -->
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>

        <a class="navbar-brand" href="index.html">Click<span>Desti</span></a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">

        <ul id="top-menu" class="nav navbar-nav navbar-right main_nav">
            <li><a href="#menu-toggle" id="menu-toggle"><b>Show Categories</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</a></li>
            <li class="active"><a href="index.html">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#service">Services</a></li>
            <li><a href="#team">Team</a></li> 
            <li><a href="#blog">Blog</a></li>               
            <li><a href="#contact">Contacts</a></li>                           
        </ul>           
      </div><!--/.nav-collapse -->
      </div>     
    </nav>

0 个答案:

没有答案