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

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

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

    a {
       outline: transparent;
    }
    

提交回复
热议问题