-2

Web ページの列ヘッダーに表示されるリンクに CSS スタイルを適用したいと考えています。CSS に以下を追加しました。

thead tr td a { color: White; }

ただし、私のリンクはまだ標準の青 (フォローすると紫) の色です。

td列ヘッダーのリンクは、タグに埋め込まれたタグに埋め込まれたタグtrに埋め込まれたアンカータグtheadですよね?

CSS が望ましい結果を生成しないのはなぜですか?

更新:
興味深いことに、これも機能しません。ページ上のすべてのリンクはまだ青と紫です。

a { color: white; }
a:hover { color: white; }
a:visited { color: white; }
a:active { color: white; } 
4

1 に答える 1

2

使用する

thead tr td a { color: white; }
thead tr td a:hover { color: white; }
thead tr td a:visited { color: white; }
thead tr td a:active { color: white; }

この実例を見る

text-decoration: none;最初のタグに含まれる下線を削除するには

それでもうまくいかない場合は!important、それぞれの後に使用してみてください

于 2012-04-10T21:21:07.177 に答える