IE与Firefox在显示锚色

时间:2009-09-24 21:43:32

标签: html css internet-explorer firefox anchor

我只是注意到Firefox 3.5中的一个非常奇怪的行为。我在Ubuntu Jaunty Jackalope(9.04)和Windows XP下运行Firefox 3.5。

当我打开以下网址时:http://www.w3schools.com/css/tryit.asp?filename=trycss_link2

Firefox以蓝色呈现链接。当我用IE 6.0打开它时,它会以“红色”显示链接。

根据网站使用的样式表:

<style type="text/css">
a.one:link {color: #ff0000}
a.one:visited {color: #0000ff}
a.one:hover {color: #ffcc00}

a.two:link {color: #ff0000}
a.two:visited {color: #0000ff}
a.two:hover {font-size: 150%}

a.three:link {color: #ff0000}
a.three:visited {color: #0000ff}
a.three:hover {background: #66ff66}

a.four:link {color: #ff0000}
a.four:visited {color: #0000ff}
a.four:hover {font-family: monospace}

a.five:link {color: #ff0000; text-decoration: none}
a.five:visited {color: #0000ff; text-decoration: none}
a.five:hover {text-decoration: underline}
</style>

这些链接应以“红色”(#ff0000)显示。这是firefox中的一个错误,或者这是浏览器应该如何根据W3C标准呈现锚点?

干杯,

1 个答案:

答案 0 :(得分:2)

尝试清除浏览器缓存。它在你的历史中。如果您将:visited部分更改为其他颜色,您将看到差异。

相关问题