<!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>多级下拉菜单</title>
<style type="text/css">
#navmenu{
list-style: none;
}
#navmenu li{
float: left;
height: 40px;
position: relative;
padding: 0;
}
#navmenu li a{
margin-top: 1px;
text-decoration: none;
padding: 0 10px;
text-align: center;
display: block;
height: 40px;
line-height: 40px;
background-color: #111111;
color:#ffffff;
border-right: 2px solid #fff;
}
#navmenu li ul{
list-style: none;
display: none;
position: absolute;
top: 40px;
left: -40px;
}
#navmenu li ul li{
width: 94px;
margin-top: 1px;
}
#navmenu li a:hover{
background:url(C:\Users\Administrator\Downloads\Sublime Text Build 3083\jQuery\形形色色的下拉菜单\4\03\7270087_170855295352_2.jpg) 0 0 repeat-x;
color: #fff;
}
#navmenu li:hover ul{
display: block;
}
</style>
</head>
<body>
<ul id="navmenu">
<li><a href="#">慕课网首页</a></li>
<li><a href="#">课程大厅</a> </li>
<li><a href="#">学习中心+</a>
<ul>
<li><a href="#">前端课程+</a></li>
<li><a href="#">手机开发+</a></li>
<li><a href="#">后台编程</a></li>
</ul>
</li>
<li><a href="#">关于我们</a></li>
</ul>
</body>
</html>