我知道这听起来很疯狂或容易,但我没有得到任何结果。 我正在研究bootstrap手风琴,我正在试图弄清楚如何用CSS编写以允许在相同时间使用CSS显示所有颜色蓝色(图标,文本和背景颜色):当人们点击链接时焦点或手风琴...
请看一行代码手风琴......
<a href="#" class="list-group-item list-group-item-action"><i class="fa fa-user" aria-hidden="true"></i> Members</a>
或者请看每个手风琴按钮的整个样本......
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<dl class="accordion">
<dt><span><i class="fa fa-tachometer" aria-hidden="true"></i> Manage</span><i class="accordion_icon fa fa-chevron-up"></i></dt>
<dd class="accordion_content">
<div class="list-group">
<a href="#" class="list-group-item "><i class="fa fa-tachometer blue" aria-hidden="true"></i> Dashboard</a>
<a href="#" class="list-group-item list-group-item-action"><i class="fa fa-users" aria-hidden="true"></i> Members</a>
<a href="#" class="list-group-item list-group-item-action"><i class="fa fa-clipboard" aria-hidden="true"></i> Posts</a>
<a href="#" class="list-group-item list-group-item-action disabled"><i class="fa fa-tachometer" aria-hidden="true"></i> Vestibulum at eros</a>
</div>
</dd>
<dt><span><i class="fa fa-tachometer" aria-hidden="true"></i> Settings</span><i class="accordion_icon fa fa-chevron-up"></i></dt>
<dd class="accordion_content">
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action"><i class="fa fa-user" aria-hidden="true"></i> Members</a>
<a href="#" class="list-group-item list-group-item-action"><i class="fa fa-clipboard" aria-hidden="true"></i> Posts</a>
<a href="#" class="list-group-item list-group-item-action"><i class="fa fa-comments" aria-hidden="true"></i> comments</a>
<a href="#" class="list-group-item list-group-item-action "><i class="fa fa-user-secret" aria-hidden="true"></i> Privacy</a>
<a href="#" class="list-group-item list-group-item-action "><i class="fa fa-bell" aria-hidden="true"></i> Notifications</a>
<a href="#" class="list-group-item list-group-item-action "><i class="fa fa-envelope" aria-hidden="true"></i> Emails</a>
<a href="#" class="list-group-item list-group-item-action "><i class="fa fa-globe" aria-hidden="true"></i> Sites Infor</a>
</div>
</dd>