我使用Twitter bootstrap 3创建了nav-pills 除了下拉菜单,一切都很好 文档显示了标签链接的布局,但不显示内容:http://getbootstrap.com/components/#nav-dropdowns
我想在用户选择其中一个下拉链接时显示内容。
小提琴是这样的:http://jsfiddle.net/mavent/skL5H/3/
<div class="tabbable">
<ul class="nav nav-tabs nav-pills" id="myTab">
<li class="active"> <a href="#tab1" data-toggle="tab">Part 1</a>
</li>
<li class=""> <a href="#tab2" data-toggle="tab">Part 2</a>
</li>
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Activity <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#tab3">Action</a>
</li>
<li><a href="#tab4">Another action</a>
</li>
</ul>
</li>
</ul>
<br>
<div class="tab-content">
<div class="tab-pane active" id="tab1">aaaaaaaaaaaa</div>
<div class="tab-pane" id="tab2">bbbbbbbbbbbb</div>
<div class="tab-pane" id="tab3">cccccccccccccc</div>
<div class="tab-pane" id="tab4">dddddddddddddd</div>
</div>
</div>