我想改变图标颜色。 不是背景颜色。 我的 html 代码:
<i class="icon-large icon-3x icon-arrow-up go-top" style="color:#eee;"></i>
CSS:
.go-top {
position: fixed;
bottom: 1em;
right: 1em;
text-decoration: none;
color: #fff;
font-size: 13px;
padding: 1em;
}
i.go-top:hover{
border-color:red;}
更改悬停时图标的颜色。
最佳答案
您正在更改边框颜色。
要改变颜色使用color:
i.go-top:hover{
color:red;
}
关于html - 我们如何改变图标的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18650584/