0

Web ページのリンクの色を変更しています。CSS:

a:link, a:visited, a:active {
  color: #009900 !important;
  text-decoration: none;
}

a:hover {
  background-color: #009900;
  color: #ffffff !important;
  text-decoration: none;
}

.lemmas a:link, a:visited, a:active {
  color: #014e68 !important;
  text-decoration: none;
}

.lemmas a:hover {
  background-color: #014e68;
  color: #ffffff !important;
  text-decoration: none;
}

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

.feel a:hover {
  background-color: #ff3300;
  color: #ffffff !important;
  text-decoration: none;
}

feelリンクは、Firefoxでクラスに割り当てられた最後の色でのみ色付けされます。Internet Explorer では、色は完全に表示されます。問題はどこだ?

4

1 に答える 1

2

私はこれらのセレクターだと思います:

.lemmas a:link, a:visited, a:active {}
.feel a:link, a:visited, a:active {}

次のようになります。

.lemmas a:link, .lemmas a:visited, .lemmas a:active {}
.feel a:link, .feel a:visited, .feel a:active {}

そうでない場合は、すべてのアクセス済みリンクとアクティブなリンク:visited:active疑似クラスが適用されます。

于 2013-08-20T08:37:38.183 に答える