當訪問該頁面在微服私訪(除去:visited
樣式)的鏈接的文本是藍色,但它應該是白色。CSS顏色不工作的鏈接
.button {
color:#ffffff; /* white */
background:#d8eaf0;
}
.button:visited {
color:#ffffff; /* white */
background:#d8eaf0;
}
.button:hover {
color:#ffffff; /* white */
background:#3838a5;
}
.button:active {
color:#ffffff; /* white */
background:#d8eaf0;
}
<a href="example.com" style="text-decoration: none" class="button">text</a>
在你的CSS你有'button {background:#d8eaf0; }',所以你有一個背景燈藍色的按鈕 –
嗯,我試圖運行你的代碼,它在'隱身'工作正常,正常工作正常模式。 – Saani
@ LuisP.A。問題是文字.. –