胶囊式菜单

<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>

效果如下:

 

posted @ 2017-11-30 09:37  墨落成白  阅读(523)  评论(0编辑  收藏  举报