【CSS3】aタグの下線、リンク色の変更方法
ヘッダーのロゴを画像ではなく文字を使用する場合など、
aタグで囲むと設定されるデフォルト値の下線、リンクの(青)色の解除方法を記載します。
text-decoration: none;を指定し下線を非表示
style.css
a {
text-decoration: none;
}
color: 色コード;を指定しリンクの色を変更
style.css
a {
text-decoration: none;
color: #000000; /* 今回は#000000を指定していますが、好きな色を指定できます */
}
style.css
a {
text-decoration: none;
color: #000000; /* 今回は#000000を指定していますが、好きな色を指定できます */
}
Author And Source
この問題について(【CSS3】aタグの下線、リンク色の変更方法), 我々は、より多くの情報をここで見つけました https://qiita.com/andota05/items/1163fd4698bed08d35b4著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .