How to remove the blue box shadow border in button if clicked

后端 未结 3 558
醉梦人生
醉梦人生 2020-12-28 18:05

I want to do is remove the button blue box shadow effect in my class btnd if the button is click.

current output:

i tried this but it doesnt w

相关标签:
3条回答
  • 2020-12-28 18:27

    just use this line to remove the focus $( "#OK" ).button().blur();

    0 讨论(0)
  • 2020-12-28 18:28

    I deal with this problem just yesterday. You need:

    .btnd:focus, .btnd:active, .btnd.active, .btnd:focus:active {
      background-image: none;
      outline: none;
      -webkit-box-shadow: none;
      box-shadow: none;
    }
    

    The key is in last selector .btnd:focus:active.

    0 讨论(0)
  • 2020-12-28 18:29

    Blue shadow is browser default :focus state

    .btnd:active,
    .btnd:focus,
    .btnd:focus:active {
      background-image: none;
      outline: 0;
      box-shadow: none;
    }
    
    0 讨论(0)
提交回复
热议问题