|
主题: 令人无法理解的css定义超链接的问题!
|
 tianle
职务:普通成员
等级:1
金币:0.0
发贴:16
|
#12001/7/12 22:53:01
小弟用class=1、2、3的方法定义了三种超链接样式,代码如下: a.1:link { text-decoration: none} a.1:visited { color: #4242FF; text-decoration: none} a.1:link { color: #4242FF} a.1:hover { color: #FC855C; text-decoration: none} .9point { font-size: 9pt; line-height: 16px}
a.2:link { text-decoration: none} a.2:visited { color: #000000; text-decoration: none} a.2:link { color: #000000} a.2:hover { color: #FC855C; text-decoration: none}
a.3:link { text-decoration: none} a.3:visited { color: #4242FF} a.3:link { color: #4242FF} a.3:hover { color: #FC855C} 其中a.2是没有下划线的,在ie中预览也确实没有下划线。但是如果把整个网站目录在硬盘中移个位置或者copy到别处,a.2中的a.2:link { text-decoration: none}好像一点作用都没有,超链接仍然有下划线,只是鼠标移上去后消失。这是什么原因,小弟百思不得其解!盼高手指教。
|
 tianle
职务:普通成员
等级:1
金币:0.0
发贴:16
|
#22001/7/12 22:56:32
不好意思,第一个帖子没看到,又发了一遍,这个问题太急了,在此对不起大家乐.
|
 小笨蛋
职务:普通成员
等级:2
金币:1.0
发贴:506
|
#32001/7/13 0:42:29
a.2:link { color: #000000} 没有{ text-decoration: none}
劲速提升LV中…………
|
 tianle
职务:普通成员
等级:1
金币:0.0
发贴:16
|
#42001/7/13 9:44:48
adam123在上个贴子中说 引用: a.2:link { color: #000000} 没有{ text-decoration: none}
不好意思,这个都没发现,不过我还是无法解释为何在原来的目录下没有下划线.
|