<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>
尝试这样的事情:
如果
text-decoration
不起作用,请将其更改为:!important
规则会覆盖text-decoration
属性的所有其他样式。您可以在此处阅读更多相关信息。继承值:
...将导致元素呈现其父级的颜色(我认为这就是您正在寻找的)。
现场演示如下: