电脑技术学习

纯CSS制作的超酷的网站横向导航菜单(网页特效)

dn001
<!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>www.knowsky.com</title>
<style type="text/css">
* {
font-size:12px;
text-align:center;
}
body {
background:#f0f0f0;
}
#nav {
width:700px;
margin:20px auto 0 auto;
background:#f60;
padding:8px 12px;
}
#nav li {
display: inline;
list-style-type: none;
}
#nav li a:link,#nav li a:visited {
float:left;
margin-right:8px;
padding:2px 5px;
text-decoration: none;
color:#fff;
border:1px solid #f60;
}
#nav li a:hover {
color:#ff0;
border:1px solid #fff;
}
#nav li a#current {
color:#c00;
border:1px solid #fff;
background:#fff;
}
</style>
</head>
<body>
<ul id="nav">
<li><a href="http://www.knowsky.com/" id="current">knowsky.Com 首页</a></li>
<li><a href="http://www.knowsky.com/developer.asp" title="">网络编程 </a></li>
<li><a href="http://www.knowsky.com/zhanzhang.asp" title="">站长之家</a></li>
<li><a href="http://www.knowsky.com/web.asp" title="">网页制作</a></li>
<li><a href="http://www.knowsky.com/photo.asp" title="">图形图象</a></li>
</ul>
</body>
</html>