|
|
値: | none | [ underline || overline || line-through || blink ] | inherit |
a { text-decoration: underline }
文字の装飾の値 |
|
ページ全体のリンクを設定
a:link {...} /* リンク */
a:visited {...} /* 訪問済みリンク */
a:hover {...} /* ポイント時のリンク */
a:active {...} /* アクティブなリンク */
特定クラスが指定されているリンクの設定
a.クラス:link {...}
a.クラス:visited {...}
a.クラス:hover {...}
a.クラス:active {...}
特定クラスが指定された要素に含まれるリンクの設定
.クラス a:link {...}
.クラス a:visited {...}
.クラス a:hover {...}
.クラス a:active {...}
マウスが乗ったら下線と背景を表示
a:link {color:#0000ff; text-decoration:none}
a:visited {color:#0000ff; text-decoration:none}
a:hover {color:#006699; text-decoration:underline; background:#ddeeff}
a:active {color:#006699; text-decoration:underline; background:#ddeeff}