Bootstrap button - remove outline on Chrome OS X

前端 未结 16 1807
后悔当初
后悔当初 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:03

    I see .btn:focus has an outline on it:

    .btn:focus {
      outline: thin dotted;
      outline: 5px auto -webkit-focus-ring-color;
      outline-offset: -2px;
    }
    

    Try changing this to:

    .btn:focus {
      outline: none !important;
    }
    

    Basically, look for any instances of outline on :focused elements — that's what's causing it.

    Update - For Bootstrap v4:

    .btn:focus {
      box-shadow: none;
    }
    

提交回复
热议问题