汤姆
我正在使用Zurb Foundation,我的问题很简单,如何更改按钮的颜色,像这样,<a href="#" class="button [radius round]">Text</a>
现在,我知道有一种方法可以更改背景颜色<a href="#" class="button [radius round]" style="background-color: #3871be">Button Text</a>
,但是,当我这样做时,当我将鼠标悬停在按钮上时,我将淡入淡出效果变为较暗的颜色,如何获得较暗的淡入淡出效果?
汤姆
好的,在这里回答我自己的问题,将其放在我的CSS中
.button.custom {
background-color: #88643d;
}
.button.custom:hover,
.button.custom:focus {
background-color: #6d5031;
}
做到了:)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
编辑于
我来说两句