【发布时间】:2018-02-05 02:43:09
【问题描述】:
您好,我使用 Bootstrap Links and buttons
我正在尝试更改活动按钮突出显示的颜色,当鼠标悬停在按钮上时会出现,默认情况下白色为不同颜色:
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-12">
<div class="list-group">
<h2><a href="#" class="list-group-item active">
<strong>T E X T</strong></a>
<a href="page1.html" class="list-group-item list-group-item-action"> Link 1 </a>
<a href="page2.html" class="list-group-item list-group-item-action"> Link 2 </a>
</div>
</div>
</div>
</div>
我已经尝试过,因为它在这个answer to the same question whit css 中显示,因为我的程序集中没有 scss/bootstrap.scss 只有 _bootstrap-overrides.scss
至此 bootstrap.css 结束:
a {color: #8cf1dd;}
a:hover {color: #e9d214;}
并进入带有 Bootstrap 链接和按钮组件的 HTML 的<head>:
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
.card .nav-link {color: #8cf1dd;}
.card .nav-link:hover {color: #e9d214;}
</style>
但颜色相同,我想要something like this
【问题讨论】:
标签: html css twitter-bootstrap