ITeye博客

IE6下 a 标签链接颜色Bug

LvMax · 2011-05-14 09:24 · web前端 · Web前端 · Markdown

本来连接的颜色都统一设置了 然后单独的样式又单独的设置,但是在Ie6 里面颜色却显示统一设置的 不是单独设置的样式呢

就是说原来的链接文字是红色的,但是在ie6里就不是红色的

附上代码:

.left span{ font-size:13px; font-weight:800; color:#993300; padding-top:5px; margin-left:5px; }

.new{ width:140px; height:80px; border-bottom-color:#666666; border-bottom-width:1px; border-bottom-style:dashed; background-image:url(../images/new.jpg); background-repeat:no-repeat; padding-top:10px; padding-left:35px; margin-bottom:6px; color:#993300; }

.new a { color: #993300; }

这是为什么呢?

我试着在html的文字部分上改改,新手上路 这是原来的代码,然后我在新手上路前加上就出现了红色的效果。

当然其实这是字的红色,不是链接的红色

那么下面就是关键了,为什么链接的红色效果出不来

原来 ie6对a href=后面的内容有一定的要求,那么我把原来的<a href="#“ title="new">新手上路改成新手上路或者在a href=后面直接加上网址

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。