我有引导程序的选项卡式导航,每个选项卡中都有字体很棒的图标和文本。
当标签处于活动状态时,我希望图标和文本显示。在非活动选项卡上,应仅显示图标:
<div class="row" id="tabbedItemsRow">
<div class="col-lg columnBlock">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#Content1">
<i class="fas fa-bell text-warning"></i> <!-- tab icon -->
Tab1 <!-- tab text-->
</a>
</li>
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#Content2">
<i class="fas fa-info text-primary"></i>
Tab2
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#Content3">
<i class="fas fa-server text-primary"></i>
Tab3
</a>
</li>
</ul>
<div class="tab-content">
<div id="Content1" class="tab-pane hide">
Some content
</div>
<div id="Content2" class="tab-pane active">
More content
</div>
<div id="Content3" class="tab-pane hide">
Some more content
</div>
</div>
</div>
</div>
暮色呼如
相关分类