jquery - Bootstrap Navbar not collapsing on mobile or tablet -
I have not broken problems with my bootstrap. I'm not sure why this is not working Hope I can be thankful for any help. I'm a newbie so please be gentle.
& lt; Nav class = "navbar navbar-default navbar-fixed-top" role = "navigation" & gt; & Lt; Div class = "container" & gt; & Lt ;! - Brand and toggle are grouped for better mobile display - & gt; & Lt; Div class = "navbar-header page-scroll" & gt; & Lt; Button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = "#bs-example-navbar-fall-1" & gt; & Lt; Span class = "sr-only" & gt; Toggle Navigation & lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; / Button & gt; & Lt; A class = "navbar-brand page-scroll" href = "# page-top" & gt; Start bootstrap & lt; / A & gt; & Lt; / Div & gt; & Lt ;! - Collect nav links, forms and other content for toggling - & gt; & Lt; Div class = "fall navbar-fall" id = "bs-example-navbar-collapse-1" & gt; & Lt; Ul class = "nav navbar-nav navbar-right" & gt; & Lt; Li class = "hidden" & gt; & Lt; A href = "#page-top" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "smooth scale" href = "# function" & gt; Work & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; One class = "smooth scroll" href = "# team" & gt; Team & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A class = "smooth scroll" href = "# contact" & gt; Contact & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt ;! - /.navbar- -collapse- & gt; & Lt; / Div & gt; & Lt ;! - /.container-fluid - & gt; & Lt; / Neo & gt;
You probably did not include the bootstrap.js file It's the most common mistake that a new face has to face. I know I did it.
Comments
Post a Comment