【发布时间】:2018-03-13 14:59:55
【问题描述】:
当用户将鼠标悬停在图标上时,如何使用 HTML 或 CSS 将蓝色更改为不同的颜色?
更新:这是css代码:
.timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon {
background: #fff;
position: absolute;
color: #737881;
display: block;
width: 30px;
height: 30px;
border-radius: 50%;
text-align: center;
-moz-box-shadow: 0 0 0 5px #f5f5f6;
-webkit-box-shadow: 0 0 0 5px #f5f5f6;
box-shadow: 0 0 0 5px #f5f5f6;
line-height: 40px;
font-size: 15px;
float: left;
}
.timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-primary {
background-color: #309BDF;
color: #fff;
}
.timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon.bg-primary:hover {
background-color: #a3bbe0;
color: #fff;
}
【问题讨论】:
-
向我们展示您的尝试?
-
发布你的代码添加sn-p。
-
把代码放在这里!因为有很多方法
标签: html css twitter-bootstrap