我正在尝试将标签添加到.navbar
但.tab-content
不显示在标签下方但在它旁边。当我删除.navbar
类选项卡时工作正常(内容位于选项卡下方),因此类存在一些问题.navbar
。有谁知道是什么问题?
这是代码:
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="/system/default/">Home</a>
<div class="nav-collapse subnav-collapse">
<div id="snippet--mainMenu">
<ul class="nav nav-tabs">
<li class=""><a href="#tab1" data-toggle="tab">Analyze</a></li>
<li class=""><a href="#tab2" data-toggle="tab">Portfolio</a></li>
<li class=""><a href="/system/search/" >Search</a></li>
</ul>
<div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
<div class="tab-pane" id="tab1">
<ul>
<li style="display: inline;list-style-type: none;"><a href="/system/analyze/builder">Builder</a></li>
<li style="display: inline;list-style-type: none;"><a href="/system/analyze/history">History</a></li>
<li style="display: inline;list-style-type: none;"><a href="/system/analyze/optimize">Optimize</a></li>
</ul>
</div>
<div class="tab-pane" id="tab2">
<ul>
<li style="display: inline;list-style-type: none;"><a href="/system/portfolio/list">Table List</a></li>
<li style="display: inline;list-style-type: none;"><a href="/system/portfolio/watchlist">Watchlist</a></li>
<li style="display: inline;list-style-type: none;"><a href="/system/portfolio/temporary">Temporary</a></li>
</ul>
</div>
</div>
</div>
<div class="btn-group pull-right">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user"></i> User<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/system/user/">Profile</a></li>
<li class="divider"></li>
<li><a href="/system/default/logout">Sign Out</a></li>
</ul>
</div>
</div><!-- /.nav-collapse -->
</div><!-- /.container-fluid -->
</div><!-- /.navbar-inner -->
</div><!-- /.navbar -->