【发布时间】:2021-01-29 19:01:22
【问题描述】:
我正在使用 bootstrap 3,这可能是一个愚蠢的问题,但我无法在此处禁用 fa-chart-line 图标上的悬停效果:
<h5>
<span class="btn btn-circle blue1-icon">
<i class="fas fa-chart-line"></i>
</span> My Title
</h5>
CSS:
.blue1-icon {
background-color: #019993;
color: #fff;
}
.blue1-icon:hover {
text-decoration: none;
}
.btn-circle {
width: 30px;
height: 30px;
text-align: center;
padding: 6px 0;
font-size: 12px;
line-height: 1.428571429;
border-radius: 15px;
}
.btn-circle:hover {
cursor: default;
text-decoration: none !important;
}
.fa-chart-line:hover {
text-decoration: none !important;
}
我该如何解决这个问题?
【问题讨论】:
-
可以放你的html吗?
-
抱歉刚刚修复了html。
-
你能演示一下你的问题吗?我似乎无法复制。
标签: html css twitter-bootstrap-3