当访问该页面在微服私访(除去: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。问题是文字.. –