Make link color same as text color without knowing text color?
Is there some CSS t开发者_运维百科hat I can use to set the link color to be the same value as normal text?
Simply set
a { color: inherit; }
edit: you may need to add
a { color: inherit !important; }
but best practices suggest you avoid using the !important over-ride.
Just a small addition:
a{
color: inherit;
}
a:visited{
color:inherit;
}
a:hover{
color:inherit;
}
精彩评论