CSS - Is there a way to get rid of the selection rectangle after clicking a link?

后端 未结 2 1362
北荒
北荒 2020-12-24 11:13

Is there a way to get rid of the selection rectangle when clicking a link which does not refresh the current page entirely?

2条回答
  •  甜味超标
    2020-12-24 11:30

    Do you mean the dotted outline of a target?

    Try:

    :focus {
        outline: 0;
    }
    

    This would remove all focus outlines. IT's essentially the same as onclick in JavaScript terms. You might prefer to apply this to a:focus.

提交回复
热议问题