什么是禁用Bootstrap的按钮悬停类名? [英] What is a Bootstrap disabled button hover class name?
本文介绍了什么是禁用Bootstrap的按钮悬停类名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的网站上,我有一个禁用的按钮。悬停事件发生后,它将颜色更改为错误的颜色。
On my site I have a disabled button. After hover event it changes a color for a wrong one.
我想更改此按钮的悬停颜色,但我无法/不知道在引导框架中为此禁用的类名是什么?问题。
I want to change a hover colour for this button and I can't find / don't know what is a class name disabled button hover in the bootstrap framework for this issue.
例如:
<button type="submit" class="btn btn-primary" disabled="disabled">My disabled button</button>
推荐答案
.btn-default[disabled] {
background: #ccc !important;
}
.btn-default[disabled]:hover {
background: #ccc !important;
}
我正在使用它。
这篇关于什么是禁用Bootstrap的按钮悬停类名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文