我有一個引導頁與導航欄是這樣的:爲什麼導航欄不能伸展到正確的位置?
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
\t <div class="container-fluid sts-screen-fluid">
\t \t <nav role="navigation" class="navbar-nav navbar-default">
\t \t \t <div class="container">
\t \t \t \t <div class="navbar-header">
\t \t \t \t \t <button type="button" data-toggle="collapse" data-target=".navbar-collapse" class="navbar-toggle">
\t \t \t \t \t \t <span class="icon-bar"></span>
\t \t \t \t \t \t <span class="icon-bar"></span>
\t \t \t \t \t \t <span class="icon-bar"></span>
\t \t \t \t \t </button>
\t \t \t \t \t <span class="navbar-brand">Kn</span>
\t \t \t \t </div>
\t \t \t \t <div class="collapse navbar-collapse">
\t \t \t \t \t <ul class="nav navbar-nav navbar-right">
\t \t \t \t \t \t <li><a href=#>Log In</a></li>
\t \t \t \t \t \t <li><a href=#>Sign Up</a></li>
\t \t \t \t \t \t <li><a href=#>Help</a></li>
\t \t \t \t \t </ul>
\t \t \t \t </div>
\t \t \t </div>
\t \t </nav>
\t </div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
你看,問題是,我的導航欄似乎並不舒展朝着正確的一路,所以它看起來像這樣:
我應該怎麼做才能導航欄獲得正確的?
附:我沒有應用任何額外的CSS –
'.sts-screen-fluid'類是否有任何規則? – ferdynator
不,我沒有。 –