点击时链接颜色变化............................................. ..... [英] LINK COLOR CHANGE WHEN CLICKED ..................................................
本文介绍了点击时链接颜色变化............................................. .....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在标记中,如何在单击文本时更改文本的颜色,所需颜色从蓝色变为红色。
例如:
1) genevieve@nboa.net
2)
推荐答案
请参阅以下链接。
http://www.goldcoastwebdesigns.com/change-hyperlink-color.shtml [ ^ ]
Please refer to below link.
http://www.goldcoastwebdesigns.com/change-hyperlink-color.shtml[^]
这是一个例子,试试吧.... :)
here is one example just try it....:)
<html>
<head>
<style>
a:link {color:#FF0000;} /* unvisited link */
a:visited {color:#00FF00;} /* visited link */
a:hover {color:#FF00FF;} /* mouse over link */
a:active {color:#0000FF;} /* selected link */
</style>
</head>
<body>
<p><a href="http://niravprabtani.kumsworld.com" target="_blank">This is a link</a></p>
<p>Note: a:hover MUST come after a:link and a:visited in the CSS
definition in order to be effective.</p>
<p>Note: a:active MUST come after a:hover in the CSS definition in order
to be effective.</p>
</body>
</html>
这篇关于点击时链接颜色变化............................................. .....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文