我如何让它工作,以便当我悬停我的李>它还会改变我的glyphicon上的颜色。我已经在我的html下面收听了我在
HTML:
<li class="pushy-item">
<a href="#">History
<span class="glyphicon glyphicon-list-alt opacityDown pull-right"></span>
</a>
</li>
Css:
ul > li > a > .glyphicon:hover{
color: orange;
}
`
答案 0 :(得分:8)
你可以试试这个:
ul > li > a:hover > .glyphicon
答案 1 :(得分:0)
div > .glyphicon-heart:hover {
color: rgb(102, 102, 101);
cursor: pointer;
}
&#13;
<div class = "heart">
<span class = "glyphicon"
[class.glyphicon-heart] = "isLiked"
(click) = "onClick()" >
</span>
</div>