设置css样式表中链接的颜色
关键词:css样式表 链接的颜色
css链接样式代码
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
body,td,th {
color: #003399;
font-size: 12px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #CCFF00;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.blue:link {
color: #0000CC;
text-decoration: none;
}
.blue:hover {
color: #FF0000;
}
.blue:active {
color: #FF00CC;
}
.blue:visited {
color: #FF0000;
}
-->
</style>
调用时代码:
<a href="http://www.panpan.org" class="blue">盼盼的家园</a>