是否有一些CSS,我可以使用设置链接的颜色是相同的值作为正常的文本?
简单设置
a { color: inherit; }
编辑:你可能需要添加
a { color: inherit !important; }
,但最佳实践建议您避免使用!重要的搁置。
稍微补充一下:
a{
color: inherit;
}
a:visited{
color:inherit;
}
a:hover{
color:inherit;
}