折叠菜单效果:
代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="css/iconfont.css" rel="stylesheet"/>
<style>
ul,li,a{
margin: 0px;
padding: 0px;
}
a{
text-decoration: none;
color: #000;
line-height: 28px;
}
#menu>li{
width: 130px;
list-style-type: none;
text-align: center;
background-color: #000;
}
#menu>li>a{
color: #fff;
}
.submenu{
background-color: #fff;
display: none;
}
.submenu>li{
list-style-type: none;
}
</style>
</head>