Chinaunix首页 | 论坛 | 博客
  • 博客访问: 458746
  • 博文数量: 118
  • 博客积分: 4015
  • 博客等级: 上校
  • 技术积分: 1233
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-24 22:11
文章分类

全部博文(118)

文章存档

2013年(5)

2011年(61)

2010年(52)

分类: 系统运维

2011-01-04 11:48:57

设置href的 style,开始时写成这样
a.link{
    text-decoration:none;
    color:#555555;
}
a.hover{
    text-decoration:none;
    font-weight:bold;
    color:#ff0000;
}
a.visited{
    text-decoration:none;
  
}
可是,鼠标hover的时候,字体的颜色没有变成红色,原来,设置属性的时候,顺序是有规定的,
a.hover,需要放在a.link,a.visited之后
a.activate则要放在a.hover之后
a.link{
    text-decoration:none;
    color:#555555;
}

a.visited{
    text-decoration:none;
  
}
a.hover{
    text-decoration:none;
    font-weight:bold;
    color:#ff0000;
}
这样,就没问题了。。。。
阅读(1249) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~