我有一个默认绿色背景的按钮.开hover,背景颜色改变.
单击该按钮时,我希望它回退到绿色背景.
我该如何实现这一目标?我尝试了以下但没有成功:
.btn {
background-color: #4dd0e1
}
.btn:hover {
background-color: #01579b
}
.btn:active {
background-color: #4dd0e1
}
.btn:visited {
background-color: #4dd0e1
}Run Code Online (Sandbox Code Playgroud)
<a href="#" target="_blank" class="waves-effect btn"><i class="material-icons right">arrow_forward</i>button</a>Run Code Online (Sandbox Code Playgroud)
谢谢!