[英]How to change the color of a:visited to its parent color on refresh of the page
I need to change the color of the a:visited to its parent color on refresh. 我需要在刷新时将a:visited的颜色更改为其父色。 How to do it?
怎么做?
.foo:visited {
color: #f00;
}
document.getElementById('yourID').className += ' foo';
I hope this will help you 我希望这能帮到您
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.