引导按钮焦点颜色

问题描述

如何在聚焦时和模糊(不聚焦)时设置自举按钮的颜色? 认情况下,bootstrap的第三种颜色是focus,我不想要。我只想要两种颜色:活动和不活动,无论它是否聚焦。

这是我的硬编码黑客,但是如何正确执行呢?

.btn:focus {
    background-color: #3490dc !important;  // color when focused but not active
}

.btn:focus.active {
    background-color: #2176bd !important;  //color when focused and active
}

.btn:focus {
    Box-shadow: none !important;  // disable that ugly Box too
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)