Bootstrap折叠按钮折叠;但不可见

时间:2014-12-10 03:41:51

标签: html twitter-bootstrap-3 navbar

大家好我第一次使用bootstrap作为响应式Nav ..我已经查找了几个类似问题的答案,但似乎无法让我的Nav切换按钮显示

按钮正确切换并显示我的导航;但是看不见。任何见解将不胜感激! :)

 <!-- NAVIGATION -->
<div class="nav-container">
  <div class"navbar navbar-default" role="navigation">
    <div class="container inner-container">
      <div class="navbar-header">
        <a href="index.php" class="navbar-brand"><img src="img/index/skytek-logo/Skytek_c1_S.png" width="160px" height="90px" alt="Skytek Logo"></a><p class="navbar-slogan">Engineering Excellence</p>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navHeaderCollapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
      </div>
        <div class="collapse navbar-collapse" id="navHeaderCollapse">
            <ul class="nav navbar-nav navbar-right">
               <li class="active"><a href="index.php">Home</a></li>
               <li><a href="about.php">About Us</a></li>
               <li><a href="#">Support &amp; Services</a></li>
               <li><a href="#">Sales</a></li>
               <li><a href="#">News</a></li>
               <li><a href="#">Contact</a></li>
               <li><a href="#">Careers</a></li>
               <li><a href="#">Login</a></li>
               <li class="search-bar">
                 <form class="navbar-form" role="form" method="get" action="#">
                   <div class="form-group">
                    <input type="text" placeholder="Search" class="form-control">
                   </div>
                   <button type="submit" class="btn btn-success">Go</button>
                 </form>
               </li>
            </ul>  
        </div>
      </div>
    </div>
  </div>
<!-- END NAVIGATION -->

1 个答案:

答案 0 :(得分:0)

你在这里错过了一个等号:

<div class="navbar navbar-default" role="navigation">
----------^

Demo