jquery - How to display bootstrap collapse menu in this particular scenario? -


collapse menu not displaying on smaller screen. have mistaken? using bootstrap 3. have jquery , bootstrap.min.js linked collapse menu not appearing. i want make look

html:

<header>   <div class="container">     <div class ="row ">       <div class="col-md-2">         <div class="navbar-header">           <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <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=""><img src ="img/summan-company.png" alt="summan" /></a> </div>       </div>       <div class ="row navbar-position">         <div class="col-md-10 pull-right">           <nav role="navigation" class="navbar navbar-default">             <div class="collapse navbar-collapse navbar-left ">               <div class="row "> </div>               <ul class="nav navbar-nav ">                 <li><a href="news.html">news</a></li>                 <li><a href="products.html">products</a></li>                 <li><a href="contact.html">contact</a></li>               </ul>             </div>           </nav>         </div>       </div>     </div>   </div> </header> 

modify html follows:

<html> <head>   <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" />   <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js"></script>   <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> </head> <body>   <nav class="navbar navbar-default" role="navigation">     <div class="container-fluid">       <div class="navbar-header">         <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">           <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=""><img src ="img/summan-company.png" alt="summan" /></a></a>       </div>        <div class="collapse navbar-collapse" id="navbar-collapse-1">         <ul class="nav navbar-nav navbar-right">           <li><a href="#">news</a></li>           <li><a href="#">products</a></li>           <li><a href="#">contact</a></li>         </ul>       </div>     </div>   </nav> </body> </html> 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -