Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在刷新时将 a:visited 的颜色更改为其父颜色。怎么做?
.foo:visited { color: #f00; } document.getElementById('yourID').className += ' foo';
我希望这能帮到您