mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
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>
|
<h3>Within a navbar</h3>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<nav id="navbar-example" class="navbar navbar-static" role="navigation">
|
<nav id="navbar-example" class="navbar navbar-static" role="navigation">
|
||||||
<div class="container" style="width: auto;">
|
|
||||||
<div class="navbar-header">
|
<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">
|
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-js-navbar-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
|
<a class="navbar-brand" href="#">Project Name</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-collapse collapse bs-js-navbar-collapse">
|
<div class="navbar-collapse collapse bs-js-navbar-collapse">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
@ -402,7 +401,6 @@ $('#myModal').on('hidden.bs.modal', function () {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div><!-- /.nav-collapse -->
|
</div><!-- /.nav-collapse -->
|
||||||
</div><!-- /.container -->
|
|
||||||
</nav> <!-- /navbar-example -->
|
</nav> <!-- /navbar-example -->
|
||||||
</div> <!-- /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>
|
<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">
|
<div class="bs-example">
|
||||||
<nav id="navbar-example2" class="navbar navbar-static" role="navigation">
|
<nav id="navbar-example2" class="navbar navbar-static" role="navigation">
|
||||||
<div class="container" style="width: auto;">
|
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<a class="navbar-brand" href="#">Project Name</a>
|
<a class="navbar-brand" href="#">Project Name</a>
|
||||||
</div>
|
</div>
|
||||||
@ -546,7 +543,6 @@ $('#myDropdown').on('show.bs.dropdown', function () {
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
<div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example">
|
<div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example">
|
||||||
<h4 id="fat">@fat</h4>
|
<h4 id="fat">@fat</h4>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user