Home > Web Front-end > HTML Tutorial > How to use JS or css to remove the color of a tag when clicked, during click, and after click_html/css_WEB-ITnose

How to use JS or css to remove the color of a tag when clicked, during click, and after click_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:15:16
Original
1475 people have browsed it

When I was making a web page, in IE, when I clicked on the content of the a tag, the color of the content on the tag would change, but in FF, it only turned red when clicked, and then changed back. How to achieve this effect in IE?
Thank you!


Reply to the discussion (solution)

You can use the pseudo-class of to control these. For example: in css a:hover {color: red;} a:visited { color:green;} a:link {color:black;} a {color:white;}

For details, please refer to www.w3school.com.cn

You can use Pseudo classes control these. For example: in css a:hover {color: red;} a:visited {color:green;} a:link {color:black;} a {color:white;}

Very Thanks

1l correct answer

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