How to remove Firefox's dotted outline on BUTTONS as well as links?

前端 未结 25 1477
耶瑟儿~
耶瑟儿~ 2020-11-22 14:23

I can make Firefox not display the ugly dotted focus outlines on links with this:

a:focus { 
    outline: none         


        
25条回答
  •  野性不改
    2020-11-22 15:09

    There's no way to remove these dotted focus in Firefox using CSS.

    If you have access to the computers where your webapplication works, go to about:config in Firefox and set browser.display.focus_ring_width to 0. Then Firefox won't show any dotted borders at all.

    The following bug explains the topic: https://bugzilla.mozilla.org/show_bug.cgi?id=74225

提交回复
热议问题