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

前端 未结 25 1471
耶瑟儿~
耶瑟儿~ 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:08

    Tried most of the answers here, but none of them worked for me. When I realized that I have to get rid of the blue outline on buttons on Chrome too, I found another solution. Remove blue border from css custom-styled button in Chrome

    This code worked for me on Firefox version 30 on Windows 7. Perhaps it might help somebody else out there :)

    button:focus {outline:0 !important;}
    

提交回复
热议问题