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

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

WBOY
Release: 2016-06-24 11:31:36
Original
1343 people have browsed it

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>
Copy after login

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

outline:none;
Copy after login

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template