我正在使用一个带bootstrap的按钮,类似于:
<a href="" ng-click="controller.refresh()" class="btn btn-default glyphicon glyphicon-repeat bootstrap-refresh"></a>我想在按钮悬停或单击时禁用样式更改。我想我可以通过重写btn-default:focus或btn:focus来做到这一点,但我也有其他<a>标记样式化为按钮,我希望保持单击或焦点的效果。在这种情况下,有没有一种方法可以直接覆盖标准引导css?
发布于 2015-05-15 07:34:11
将id添加到此特定项
<a href="" ng-click="controller.refresh()" class="btn btn-default glyphicon glyphicon-repeat bootstrap-refresh" id="overrideBS"></a>然后添加这个css
#overrideBS:focus {
//whatever unique properties you want
}发布于 2015-05-15 07:34:19
添加您自己的类myclass,然后根据需要设置myclass:focus,在重写值的末尾添加!important。
https://stackoverflow.com/questions/30249148
复制相似问题