css样式大全

来源:百度知道 编辑:UC知道 时间:2024/06/08 18:59:09
默认为白色,无下划线.
鼠标经过为蓝色,有下划线.
点击后为红色,无下划红.
另一种为:
默认为黑色,无下划线.
鼠标经过为白色,有下划线.
点击后为红色,无下划红.
请问通过css怎么实现.谢谢!

定义2种不同的链接样式,然后再文件中调用不同的样式,就可以实现不同的链接效果

<title>南天门永远的橘子</title>
<style type="text/css">
<!--
.orange{
background-color:orange;
padding:10px;}

.one A:link {
color: white;
text-decoration: underline;
}
.one A:visited {
text-decoration: none;
color: white;
}
.one A:hover {
color: blue;
text-decoration:underline;
}
.one A:active {
color: red;
text-decoration:none;
}

.two A:link {
color: black;
text-decoration: none;
}
.two A:visited {
text-decoration: none;
color:black;
}
.two A:hover {
color: white;
text-decoration:underline;
}
.two A:active {
color: red;
text-decoration:none;
}

-->
</style></head>

<body>
<div class="orange">
<div class="one">22&