的工作崩潰的代碼是:
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#myCarousel">Pinak Das</a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#home">Home</a></li>
<li><a href="#edu">Education</a></li>
<li><a href="#tech">Technical Skills</a></li>
<li><a href="#exp">Experience</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
不需要額外的CSS。
工作示例JSFiddle
感謝您的回答。當我增加列表的字體大小時會發生問題。你能檢查我發佈的圖片嗎? – jstandshigh