Chrome default focus outline

后端 未结 4 1719
陌清茗
陌清茗 2020-12-17 03:28

I\'m trying to remove default focus froom chrome and it works with outline:none; in the same time I want to add an box-shadow but it not working for select .



        
相关标签:
4条回答
  • 2020-12-17 03:46

    Most effective solution on Links only:

    a:focus, a:active{
        outline:none;
    }
    

    Or you can disable global:

    *{
        outline:none;
    }
    
    0 讨论(0)
  • 2020-12-17 03:59

    This should also do the trick:

    a:focus, a:active {
        outline-color: transparent !important;
    }
    
    0 讨论(0)
  • 2020-12-17 04:05

    Try this:

    * { 
        outline-color: lime;
    }
    
    0 讨论(0)
  • 2020-12-17 04:05

    for me this worked

     :focus {
           outline: -webkit-focus-ring-color auto 0;
     }
    
    0 讨论(0)
提交回复
热议问题