我一直在格式化Bootstrap Nav Bar。我想要一个导航,右侧有一个链接(注销),左侧有剩余的三个链接和标题。问题是我不能让他们排队,所以他们都是内联的。
<nav class="navbar navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
LHV TalentTracker
</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">
{% if request.path == "/candidates/" %}
<li>
<a class="candidate-nav-links" href="/candidates/">Candidates</a>
</li>
<li>
<a class="candidate-nav-links" href="/candidates/?role=technical">Product</a>
</li>
<li>
<a class="candidate-nav-links" href="/candidates/?role=business">Business</a>
</li>
</ul>
</div>
<span class="navbar-text navbar-right">{{ session["company_email"] }} <a href="#" class="navbar-link">Logout</a></span>
{% endif %}
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>