Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css a类:链接样式不工作_Css - Fatal编程技术网

Css a类:链接样式不工作

Css a类:链接样式不工作,css,Css,我试图在我给这个类的div中设置链接的样式。whatnextnav。悬停样式正在工作,但链接没有工作,它仍然继承了颜色:#3CB6CE甚至认为Firebug说没有 有人能看到下面的问题吗 .whatnextnav a:link, a:active, a:visited { color: #008566; text-decoration: none; } .whatnextnav a:hover { color: #008566; text-decoration: u

我试图在我给这个类的div中设置链接的样式。whatnextnav。悬停样式正在工作,但链接没有工作,它仍然继承了颜色:#3CB6CE甚至认为Firebug说没有

有人能看到下面的问题吗

.whatnextnav a:link, a:active, a:visited
  {
  color: #008566;
  text-decoration: none;
  }

.whatnextnav a:hover
  {
  color: #008566;
  text-decoration: underline;
  }

当多个选择器共享一个样式时,必须为每个选择器使用完整的选择器。为每个选择器设置类前缀:

.whatnextnav a:link, .whatnextnav a:active, .whatnextnav a:visited
{
  color: #008566;
  text-decoration: none;
}

JS Fiddle:

当多个选择器共享一个样式时,必须为每个选择器使用完整的选择器。为每个选择器设置类前缀:

.whatnextnav a:link, .whatnextnav a:active, .whatnextnav a:visited
{
  color: #008566;
  text-decoration: none;
}
JS Fiddle:

尝试将其更改为:

.whatnextnav a, .whatnextnav a:active, .whatnextnav a:visited
 {
  color: #008566;
text-decoration: none;
}

.whatnextnav a:hover
 {
color: #008566;
text-decoration: underline;
}
尝试将其更改为:

.whatnextnav a, .whatnextnav a:active, .whatnextnav a:visited
 {
  color: #008566;
text-decoration: none;
}

.whatnextnav a:hover
 {
color: #008566;
text-decoration: underline;
}

你的
HTML
看起来怎么样?你的
HTML
看起来怎么样?谢谢。我知道我错过了一些简单的东西,只是看不见树木@用户2764123很高兴我能帮忙。谢谢。我知道我错过了一些简单的东西,只是看不见树木@用户2764123很高兴我能帮忙。