验证中...
私信发送成功
dropmenu.html
原始数据 复制代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.nav {
background-color: #EEEEEE;
height: 40px;
width: 450px;
margin: 0 auto;
float: right;
}
.nav ul {
list-style: none;
}
.nav ul li {
float: left;
line-height: 40px;
text-align: center;
position: relative;
}
.nav a {
text-decoration: none;
color: #000000;
display: block;
width: 90px;
height: 40px;
}
.nav a:hover {
background-color: #666666;
color: #FFFFFF;
}
.nav ul li ul li {
float: none;
background-color: #EEEEEE;
}
.nav ul li ul {
position: absolute;
top: 40px;
left: 0px;
display: none;
width: 90px;
}
.nav ul li ul li a:hover {
background-color: #009933;
}
.nav ul li:hover ul {
display: block;
}
</style>
</head>
<body>
<div class="nav">
<ul>
<li><a href="#">主页</a></li>
<li><a href="#">大菜单1</a>
<ul>
<li><a href="#">小菜单1</a></li>
<li><a href="#">小菜单2</a></li>
<li><a href="#">小菜单3</a></li>
</ul>
</li>
<li><a href="#">大菜单2</a>
<ul>
<li><a href="#">小菜单1</a></li>
<li><a href="#">小菜单2</a></li>
<li><a href="#">小菜单3</a></li>
</ul>
</li>
<li><a href="#">大菜单3</a></li>
<li><a href="#">大菜单4</a></li>
</ul>
</div>
</body>
</html>

评论列表( 0 )

你可以在登录后,对此项目发表评论