how to remove the dotted line around the clicked a element in html

前端 未结 8 2317
甜味超标
甜味超标 2020-11-30 21:09

I found that if there is a a link in the page which does not link to a new page,then when user click it,there will be a dotted line around the element,it will o

8条回答
  •  渐次进展
    2020-11-30 21:29

    In my case it was a button, and apparently, with buttons, this is only a problem in Firefox. Solution found here:

    button::-moz-focus-inner {
      border: 0;
    }
    

提交回复
热议问题