漫漫技术人生路

C#

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
请问段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>
这样就有效果了
posted on 2006-09-30 15:11  javaca88  阅读(430)  评论(0编辑  收藏  举报