同一页面-定义多个文字链接样式

<html>
<head>
<title>CSS制作多种链接样式实例</title>
<style type="text/css">
<!--
a:link { color: #CC3399; text-decoration: none}
a:visited { color: #FF3399; text-decoration: none}
a:hover { color: #800080; text-decoration: underline}
a:active { color: #800080; text-decoration: underline}

a.red:link { color: #FF0000; text-decoration: none}
a.red:visited { color: #FF0000; text-decoration: none}
a.red:hover { color: #606060; text-decoration: underline}
a.red:active { color: #606060; text-decoration: underline}

a.ameth:link { color: #400040; text-decoration: none}
a.ameth:visited { color: #400040; text-decoration: none}
a.ameth:hover { color: #FF3399; text-decoration: underline}
a.ameth:active { color: #FF3399; text-decoration: underline}

div.other a:link { color: #004000; text-decoration: none}
div.other a:visited { color: #004000; text-decoration: none}
div.other a:hover { color: #008000; text-decoration: underline}
div.other a:active { color: #008000; text-decoration: underline}
-->
</style>
<!-- 链接样式表 -->
</head>
<body>
第一种样式(默认的) <a href="http://www.jvqq.net">烈焰网络</a> <br>
第二种样式 <a class="red" href="http://www.jvqq.net/bbs">烈焰论坛</a><br>
另外一种实现链接样式的方法 <a class="ameth" href="http://www.jvqq.net/bbs/BokeIndex.asp">烈焰博客</a><br>
<div class="other">DIV容器实现链接样式的方法 <a class="other" href="http://www.jvqq.net/logon.aspx">注册会员</a></div><br>
</body>
</html>

posted @ 2007-02-06 20:58  '.Elvis.'  阅读(843)  评论(0)    收藏  举报