我需要在懸停時更改鏈接的顏色,但一旦點擊後又回到原來的位置,我當前使用的代碼將停止懸停,以免單擊鏈接時發生更改。重置已訪問的顏色
<div id="nav1"><a href="clients.html">/Clients</a></div>
#nav1 {
position: absolute;
font-family: "Gill Sans";
font-weight: 300;
font-size: 10pt;
letter-spacing: 0.15em;
color: #fff;
margin-top: 30px;
margin-left: 20px;
}
#nav1 a:link {
color: #fff;
text-decoration: none;
}
#nav1 a:hover {
color: #e8138b;
text-decoration: overline;
}
#nav1 a:visited {
color: #fff;
text-decoration: none;
}
從2007年:http://css-tricks.com/135-remember-selectors-with-love-and-hate/ – Matijs
曾爲完美的感謝! –