导航下拉文本颜色在FF和IE中不起作用

时间:2021-01-12 21:45:16

I was able to get the navigation dropdown to show the letters in a different color from the background (white in this case) in Chrome browser. But when I view the same page in IE or FF, the whole background is just all green.

我能够获得导航下拉列表,以在Chrome浏览器中显示与背景颜色不同的字母(本例中为白色)。但是当我在IE或FF中查看同一页面时,整个背景都是绿色的。

Here is an example of such a page: http://www.comehike.com/hikes/hikes_and_groups.php

以下是此类页面的示例:http://www.comehike.com/hikes/hikes_and_groups.php

And here is the CSS code that makes the color show up white in Chrome

这里是CSS代码,使Chrome中的颜色显示为白色

#navigation li li a {
    color: #white;
    text-decoration:none;
}

To see the difference, just mouse over the top right where it says "community" or "hikes"

要看到差异,只需将鼠标放在右上角,即“社区”或“徒步”

Thanks, Alex

谢谢,Alex

1 个解决方案

#1


3  

take out the hash symbol from color: #white. "white" is a keyword, the hash signifies it's a color coded in hexadecimal, such as #fff.

从颜色中取出哈希符号:#white。 “white”是关键字,hash表示它是以十六进制编码的颜色,例如#fff。

#navigation li li a {
  color: white;
}

#1


3  

take out the hash symbol from color: #white. "white" is a keyword, the hash signifies it's a color coded in hexadecimal, such as #fff.

从颜色中取出哈希符号:#white。 “white”是关键字,hash表示它是以十六进制编码的颜色,例如#fff。

#navigation li li a {
  color: white;
}