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
WBOYOriginal
2016-06-24 12:15:161488browse

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