mirror of https://github.com/twbs/bootstrap.git
Removed containers, and moved brand to after the navbar-toggle
This commit is contained in:
parent
80ff4bf870
commit
b0aef6cde0
|
@ -356,15 +356,14 @@ $('#myModal').on('hidden.bs.modal', function () {
|
|||
<h3>Within a navbar</h3>
|
||||
<div class="bs-example">
|
||||
<nav id="navbar-example" class="navbar navbar-static" role="navigation">
|
||||
<div class="container" style="width: auto;">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="#">Project Name</a>
|
||||
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-js-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="#">Project Name</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse bs-js-navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
|
@ -402,7 +401,6 @@ $('#myModal').on('hidden.bs.modal', function () {
|
|||
</li>
|
||||
</ul>
|
||||
</div><!-- /.nav-collapse -->
|
||||
</div><!-- /.container -->
|
||||
</nav> <!-- /navbar-example -->
|
||||
</div> <!-- /example -->
|
||||
|
||||
|
@ -529,7 +527,6 @@ $('#myDropdown').on('show.bs.dropdown', function () {
|
|||
<p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p>
|
||||
<div class="bs-example">
|
||||
<nav id="navbar-example2" class="navbar navbar-static" role="navigation">
|
||||
<div class="container" style="width: auto;">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="#">Project Name</a>
|
||||
</div>
|
||||
|
@ -546,7 +543,6 @@ $('#myDropdown').on('show.bs.dropdown', function () {
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example">
|
||||
<h4 id="fat">@fat</h4>
|
||||
|
|
Loading…
Reference in New Issue