授業日誌 5/9
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>疑似クラスで指定(1)</title> <style type ="text/css"> <!-- *{ padding:0; margin:0; font-family:"メイリオ",Meiryo,Osaka,"MS Pゴシック","MS PGothic",sans-serif; } .nav { font-size: 0.875em; margin: 50px; /* 上・左を空ける */ } .nav li { margin-bottom: 5px; color: #F00;/* 赤 */ } .nav li a { color: #000; text-decoration: none; } .nav ul a:link{ color:#000; text-decoration:none; } .nav ul a:visited{ color:purple; text-decoration:underline; } .nav ul a:hover{ color:orange; text-decoration:underline; } .nav ul a:active{ color:red; text-decoration:underline; } --> </style> </head> <body> <div class="nav"> <ul> <li><a href="#">メニューのリンク1</a></li> <li><a href="#">メニューのリンク2</a></li> <li><a href="#">メニューのリンク3</a></li> <li><a href="#">メニューのリンク4</a></li> <li><a href="#">メニューのリンク5</a></li> </ul> </div> </body> </html>
一部修正しました。