|
||||
| リンク部分の下線を表示させないようにするにはスタイルシートで指定します。 | ||||
| サンプル 普通のリンクはこうなります。 | ||||
| サンプル 下線を消す | ||||
<a href="sample.htm" style="text-decoration:none">サンプル</a> |
||||
|
||||
| カーソルを当てるとリンク部分の背景色が変わります。 | ||||
| サンプル | ||||
| |
||||
<a href="sample.htm"style="text-decoration:none "onmouseover="this.style.background='#D2E8E8'" onmouseout="this.style.background=''"">サンプル</a> |
||||
| <head> <style type="text/css"> <!-- a:link{color: #666666; text-decoration:none;} a:visited{color:#666666; text-decoration:none;} a:hover{color: #666666; text-decoration:none; background: #D2E8E8;} a:active{color: #666666; text-decoration:none ;} --> </style> </head> |
||||
| ↑サンプルページのリンクのスタイルシートの指定です。 | ||||
| <HEAD>〜</HEAD>の中に一行挿入します。 |
||||
<link rel="stylesheet" href="style.css" > |
||||