Bootstrap button - remove outline on Chrome OS X

前端 未结 16 1846
后悔当初
后悔当初 2021-02-01 12:31

I am looking to achieve this: http://getbootstrap.com/javascript/#popovers-examples - scroll to the \"live Demo\" and hit the red popover button, in Chrome on OS X.... It\'s per

相关标签:
16条回答
  • 2021-02-01 13:07

    It worked for my bootstrap button after a such stress

    .btn:focus,
    .btn:active:focus,
    .btn.active:focus,
    .btn.focus,
    .btn:active.focus,
    .btn.active.focus {
        outline: none!important;
        box-shadow: none;
    }
    
    0 讨论(0)
  • 2021-02-01 13:10
    .btn:focus, .btn:active:focus, .btn.active:focus{
        outline:none;
        box-shadow:none;
    }
    

    This should remove outline and box shadow

    0 讨论(0)
  • 2021-02-01 13:11

    .btn.active or .btn.focus alone cannot override Bootstrap's styles. For default theme:

    .btn.active.focus, .btn.active:focus,
    .btn.focus, .btn:active.focus, 
    .btn:active:focus, .btn:focus {
          outline: none;
    }
    
    0 讨论(0)
  • 2021-02-01 13:13

    For any googlers like me, where..

    .btn:focus {
        outline: none;
    }
    

    still didn't work in Google Chrome, the following should completely remove any button glow.

    .btn:focus,.btn:active:focus,.btn.active:focus,
    .btn.focus,.btn:active.focus,.btn.active.focus {
        outline: none;
    }
    
    0 讨论(0)
提交回复
热议问题