我有一个 Bootstrap 按钮,我在其中覆盖了样式表中的样式,因为我想让该按钮变暗,现在该按钮具有来自 Bootstrap 的悬停效果,我该如何摆脱它?请参阅下面的代码片段了解结果:
.btn-dark {
min-width: 100px;
background-color: black;
color: white;
border-radius: 1px;
text-decoration: none;
opacity:1.0;
box-shadow:none;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<a href="#" class="btn btn-dark space hvr-pulse tog1" data-toggle="modal" data-target="#exampleModalCenter"><i class="fab fa-telegram-plane"></i> SEND US A MESSAGE</a>
原文由 Rheo 发布,翻译遵循 CC BY-SA 4.0 许可协议
小提琴: https ://jsfiddle.net/1qmjw47o/