デフォルトのリンクの色は青です。htmlハイパーリンクタグのデフォルトのリンク色を削除するにはどうすればよい<a>
ですか?
継承値:
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>
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加