简体   繁体   English

如何在AngularJs中删除click事件的元素焦点

[英]How to remove element focus for click event in AngularJs

on click(ng-click) of any element we will get blue border by default around that element. 在任何元素上单击(ng-click)时,默认情况下,该元素周围将显示蓝色边框。 I don't want the border so, I tried giving css as follow: 我不要边框,所以我尝试给css如下:

    div: focus {
        outline: none;
        border: 0;
    }

It will work only on div element, But to reflect on all elements we need to give same css on all elements by doing this we'll increase css code. 它仅对div元素有效,但是要反映所有元素,我们需要通过在所有元素上使用相同的CSS来增加CSS代码。 Is there any way to do that? 有什么办法吗?

*:focus {
    outline: none;
    border: 0;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM