デフォルトのリンク色は青です。HTML ハイパーリンク タグのデフォルトのリンク色を削除するにはどうすればよいですか<a>
?
ベストアンサー1
の価値を継承する:
a { color: inherit; }
… 要素が親の色を帯びるようになります (これがあなたが探しているものだと思います)。
ライブデモは次の通りです:
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>