电脑技术学习

效果非常不错的DIV+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:13px;
font-weight:800;
text-decoration:none;
margin:0;
padding:0;
}
body {
background:#ccc;
}
#menu {
list-style-type: none;
border:1px solid #fff;
margin:50px auto;
width:770px;
height:30px;
overflow:hidden;
background:#000 url(/upfiles/20070619/20070619022816_knowsky_com_b.png) 0 0 repeat-x;
}
#menu li {
border-right:1px solid #fff;
float:left;
}
#menu li a {
display:block;
text-align:center;
color:#fff;
line-height:30px;
padding:0 10px;
}
#menu li a:hover,#menu li.current {
background:#fff url(/upfiles/20070619/20070619022807_knowsky_com_a.png) 0 0 repeat-x;
}

</style>
</head>
<body>
<ul id="menu">
<li class="current"><a href="http://www.knowsky.com" title="">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>
<li><a href="http://www.knowsky.com/system.asp" title="">操作系统</a></li>
</ul>
</body>
</html>