html - Bootstrap 4按钮颜色在悬停时改变
问题描述
我在网站上使用带有 Bootstrap 4 的 Hugo Bigspring 主题。我的主要号召性用语按钮是橙色与次要绿色。但是,我的橙色按钮在悬停时变成绿色,我不知道为什么。
按钮代码:
<a href="http://localhost:1313/contact" class="btn btn-primary">Contact Us</a>
CSS:
.btn-primary:hover,
.btn-primary:focus {
background-color: #F37021!important;
border-color: #F37021!important;
box-shadow: none;
outline: none;
}
.btn-primary {
color: #fff;
background-color: #F37021!important;
border-color: #F37021!important;
您可以在此处实时查看该网站:https ://www.bridge12.com 。
橙色按钮位于页面的右上角和底部。
真的很感谢你的帮助——我已经把头撞在墙上好几个小时了。
解决方案
谢谢大家 - 这非常有帮助。我按以下顺序加载样式表:
<!-- Custom Stylesheet -->
<link rel="stylesheet" href="http://localhost:1313/css/custom.css">
<link href="http://localhost:1313/scss/style.min.css" rel="stylesheet" media="screen"/>
将其更改为此立即修复它:
<link href="http://localhost:1313/scss/style.min.css" rel="stylesheet" media="screen"/>
<!-- Custom Stylesheet -->
<link rel="stylesheet" href="http://localhost:1313/css/custom.css">
非常感谢!
推荐阅读
- c# - 使用 RabbitMQ 的 Steeltoe 消息传递 - 侦听器和依赖注入问题
- flutter - Flutter Button 放置在 GridView Builder 下方
- python - Python Socket 服务器接受无响应
- stack - 当我在 textbox1 中写一些东西时,我也想在 textbox 2 中显示相同的文本
- c# - 在 C# 中计算两个日期之间每月的天数
- excel - Excel 前几天的平均值
- python-3.x - 每个客户 ID 的第一个零和“n”的条件,然后获取字母名称并添加到下一列 pandas
- php - 如何在 WooCommerce 中删除“运费已更新”消息
- ios - React Native / App Store Connect:ITMS-90809:不推荐使用的 API
- python - 如何创建一个脚本来自动化另一个脚本?