我試圖從左側滑動導航欄。目前,它從頂部滑行。我嘗試這樣做:從Bootstrap左側滑動導航欄
小提琴:http://jsfiddle.net/52VtD/14779/
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="background:#f8f8f9;">
<div class="container">
<!-- Static navbar -->
<div class="navbar navbar-default">
<div class="navbar-header">
<button type="button" id="collbtn" class="navbar-toggle pull-left" data-toggle="collapse" data-target=".navHeadCollapse"> <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>
<ul class="nav navbar-nav allCaps navbar-collapse collapse navHeadCollapse navbar-right">
<li><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a>Contact</a></li>
<li><a>Help</a></li>
</ul>
</div>
</nav>
我看到的這個職位,但他們沒有爲我工作。
我沒有看到你試圖讓它向左滑動。 – ZimSystem