【CSS16】
- 以下の画像と同じように表示させるCSSを記述しなさい
- 擬似クラスで指定
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>ナビゲーション縦(5)</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body{
font-family:
"ヒラギノ角ゴ Pro W3",
"Hiragino Kaku Gothic Pro",
"Hiragino Kaku Gothic Pro W3",
"メイリオ",
Meiryo,
Osaka,
"MS Pゴシック",
"MS PGothic",
sans-serif;
font-size: 0.875em;
line-height: 1.8;
}
#nav {
margin: 50px auto;
width: 200px;
}
#nav ul {
list-style-type: none;
list-style-image: url(images/mark16.gif);
}
#nav li a{
text-decoration: none;
}
#nav a:link, a:visited {
color: #000;
}
#nav a:hover,a:active {
color: #E98432;
}
</style>
</head>
<body>
<div id="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>
</html>