<div>
<ul class="nav nav-tabs">
<li class="active"><a href="#Index" aria-controls="Index" role="tab" data-toggle="tab">首页</a></li>
<li ><a href="#Index1" aria-controls="Index1" role="tab" data-toggle="tab">首页1</a></li>
<li ><a href="#Index2" aria-controls="Index2" role="tab" data-toggle="tab">首页2</a></li>
</ul>
</div>
<div class="tab-content">
<div class="tab-pane active panel-group" id="Index" role="tablist" aria-multiselectable="true">
<label>这是首页</label>
</div>
<div class="tab-pane" id="Index1" role="tabpanel">
<label>这是首页1</label>
</div>
<div class="tab-pane" id="Index2" role="tabpanel">
<label>这是首页2</label>
</div>
</div>
效果如下: