個人答案。
<!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=gb2312" />
<title>3.1頁面頭部制作練習題</title>
<style type="text/css">
li{
? ? float:left;
? ? width:50px;
? ? height:30px;
? ? list-style:none;
? ? text-align:center;
? ? line-height:30px;
}
a{
? ? display:block;
? ? height:30px;
}
li a:link,li a:visited{
? ? text-decoration:none;
? ? color:black;
}
li a:hover,li a:active{
? ? text-decoration:none;
? ? color:white;
? ? background:#BE3948;
}
</style>
</head>
<body>
<h3>課程難度</h3>
<ul>
? ? <li><a href="">全部</a></li>
? ? <li><a href="">初級</a></li>
? ? <li><a href="">中級</a></li>
? ? <li><a href="">高級</a></li>
</ul>
</body>
</html>