a { color: inherit; }
…将使元素呈现其父元素的 colored颜色 (我认为您正在寻找).
现场演示如下:
a {
color: inherit;
}
<p>The default color of the html element is black. The default colour of the body and of a paragraph is inherited. This
<a href="http://example.com">link</a> would normally take on the default link or visited color, but has been styled to inherit the color from the paragraph.</p>