如何清除html中点击的a元素周围的虚线 [英] how to remove the dotted line around the clicked a element in html
本文介绍了如何清除html中点击的a元素周围的虚线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现如果在页面中有一个 a
链接没有链接到一个新的页面,那么当用户点击它时,会有一个虚线围绕该元素只会在用户点击页面中的其他任何内容时消失,如何删除此内容?
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 only disappear when user click anything else in the page,how to remove this?
示例:
>
请注意
推荐答案
使用 outline:none
到锚标签类
这篇关于如何清除html中点击的a元素周围的虚线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文