Home  >  Article  >  Web Front-end  >  CSS如何去除超链接点击时的虚线_html/css_WEB-ITnose

CSS如何去除超链接点击时的虚线_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:31:361293browse

CSS如何去除超链接点击时的虚线:
建议:尽可能的手写代码,可以有效的提高学习效率和深度。
当点击链接的时候,默认情况下会出现一个虚线框。实例代码如下:

<!DOCTYPE html><html><head><meta charset=" utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style type="text/css">a:active{  outline:none;  text-decoration:none;}</style></head><body><a href="#">蚂蚁部落</a></body></html>

上面你的代码实现了我们的要求,因为应用如下看属性:

outline:none;

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=4654

更多内容可以参阅:http://www.softwhy.com/divcss/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn