IE6不支持CSS样式设定的链接颜色吗?

[复制链接]
查看11 | 回复3 | 2010-7-17 12:40:02 | 显示全部楼层 |阅读模式
我用CSS样式定义了链接颜色,比如.menuFont a:link{color:#ffffff;}当然,写了这个.menuFont{ color:#FFFFFF; font-size:14px; font-family:Arial, Helvetica, sans-serif; font-weight:bold;} 我在IE7里面看,确实是我定义的这个颜色效果,可是用IE6看,却不是,还是那个自动默认的link颜色。定义鼠标经过颜色倒是两个浏览器都行,请教高手们如何解决

回复

使用道具 举报

千问 | 2010-7-17 12:40:02 | 显示全部楼层
a:link{font-weight : bold ;text-decoration : none ;color : #c00 ;}a:visited {font-weight : bold ;text-decoration : none ;color : #c30 ;}a:hover {font-weight : bold ;text-decoration : underline ;color : #f60 ;}a:active {font-weight : bold ;text-decoration : none ;color : #F90 ;} 以上语句分别定义了"链接、已访问过的链接、鼠标停在上方时、点下鼠标时"的样式。注意,必
回复

使用道具 举报

千问 | 2010-7-17 12:40:02 | 显示全部楼层
a:link{font-weight : bold ;text-decoration : none ;color : #c00 ;}a:visited {font-weight : bold ;text-decoration : none ;color : #c30 ;}a:hover {font-weight : bold ;text-decora
回复

使用道具 举报

千问 | 2010-7-17 12:40:02 | 显示全部楼层
楼上正解,注意链接的顺序!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行