2013-08-20 60 views
0

我正在更改網頁中鏈接的顏色。 css: a:link,a:visited,a:active顏色:#009900!重要; text-decoration:none; }Firefox中的鏈接顏色

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; 
} 

鏈接只與最後一個顏色一個分配給一流的手感在Firefox着色。在資源管理器中,顏色完美顯示。你知道問題在哪裏嗎? 感謝

+0

你可能會更一般。 a:懸停,a:訪問過,..... {text-decoration:none;}。那麼你不必重複你自己。你應該清理它。 :) – pethel

回答

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僞類將適用於所有訪問和活動鏈接。

+0

Tnks pzin。有效。 – softwareplay