-
StackOverflow 文件
-
twitter-bootstrap 教程
-
導航欄
-
基本導航欄(固定在頁面頂部)
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!--- vvv Hamburger icon that gets shown when window reaches a certain scale vvv --->
<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>
<!--- ^^^ Hamburger icon that gets shown when window reaches a certain scale ^^^ --->
<a class="navbar-brand" href="#">WebSite Title</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a asp-controller="Home" asp-action="Contact">Contact</a></li>
</ul>
</div>
</div>
</div>