雅莉斯运动服:请问这段css代码里的A /A:link /A:visited /A:active /A:hover都是什么意思?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 17:19:46
#maintable{
background-color: #000000;
color: #FFFFF0;
font-family:MS Shell Dlg,tahoma;
font-size: 12px;
}
#maintable A {
FONT-SIZE: 10pt;
COLOR: #FFFFF0;
FONT-FAMILY: "MS Shell Dlg", tahoma;
TEXT-DECORATION: none;
font-weight: bold;
}
#maintable A:link {
FONT-SIZE: 10pt;
COLOR: #FFFFF0;
FONT-FAMILY: "MS Shell Dlg", tahoma;
TEXT-DECORATION: none;
font-weight: bold;
}
#maintable A:visited {
FONT-SIZE: 10pt;
COLOR: #FFFFF0;
FONT-FAMILY: "MS Shell Dlg", tahoma;
TEXT-DECORATION: none;
font-weight: bold;
background-color: #395D84;
padding-top: 4px;
padding-right: 2px;
padding-bottom: 4px;
padding-left: 3px;
height: 20px;
width: 62px;
text-align: center;
}
#maintable A:active {
FONT-SIZE: 10pt;
COLOR: #FFFFF0;
FONT-FAMILY: "MS Shell Dlg", tahoma;
TEXT-DECORATION: none;
font-weight: bold;
}
#maintable A:hover {
FONT-SIZE: 10pt;
COLOR: #EFEFEF;
FONT-FAMILY: "MS Shell Dlg", tahoma;
TEXT-DECORATION: none;
font-weight: bold;
background-color: #0086C6;
padding-top: 4px;
padding-right: 3px;
padding-bottom: 4px;
padding-left: 3px;
height: 20px;
width: 62px;
}
----------------------------
请问段css代码里的A /A:link /A:visited /A:active /A:hover都是什么意思?起什么作用的?请高手解答!

怎么一个节日过的把百度过穷了、??回答问题的人少了。

a:link是连接 后面的为活动连接 连接访问 和访问过的,当用到这条时,你可直接调用style里的这个连接属性:比如
.shopu{

A:link
A:visited
A:active
A:hover}
你只需要在连接字的font 属性里加上这样一句就行了:
<font calss="shopu">首页</font>就可以实现你定的连接样试了其它的还多,如果你想学,看看书,和用dw做一个,很快的。给你一个例字:
<sytle>
body,td,th {
font-size: 12px;
}
a {
font-size: 12px;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.STYLE1 {color: #003366}
body {
margin-left: 0px;
margin-top: 1px;
margin-right: 0px;
margin-bottom: 0px;
}
</STYLE>
<table><tr><td calss="style1"><a ...>我的例字</a></td></tr></table>
这样就有效果了

A 是文字的颜色
/A:link 是有连接的文字的颜色
/A:visited 已经访问的连接的颜色
/A:active 活动连接的颜色
/A:hover 鼠标经过的颜色