CSS - 有没有办法在单击链接后摆脱选择矩形? [英] CSS - Is there a way to get rid of the selection rectangle after clicking a link?
本文介绍了CSS - 有没有办法在单击链接后摆脱选择矩形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在单击不完全刷新当前页面的链接时摆脱选择矩形?
Is there a way to get rid of the selection rectangle when clicking a link which does not refresh the current page entirely?
推荐答案
你是说目标的虚线轮廓吗?
Do you mean the dotted outline of a target?
试试:
:focus {
outline: 0;
}
这将删除所有焦点轮廓.它本质上与 JavaScript 术语中的 onclick 相同.您可能更愿意将此应用于 a:focus
.
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
.
这篇关于CSS - 有没有办法在单击链接后摆脱选择矩形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文