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

前端 未结 8 2321
甜味超标
甜味超标 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:46

    Try with !important in css.

    a {
      outline:none !important;
    }
    // it is `very important` that there is `no` `outline` for the `anchor` tag.  Thanks!
    
    0 讨论(0)
  • 2020-11-30 21:47

    Removing outline will harm accessibility of a website.Therefore i just leave that there but make it invisible.

    a {
       outline: transparent;
    }
    
    0 讨论(0)
提交回复
热议问题