您的当前位置:首页正文

jquery实现多级下拉菜单的实例代码

2024-11-03 来源:个人技术集锦

#keleyi-com-nav li{
list-style: none;
display: block;
float: left;
height: 40px;
position: relative;
border-right: 1px solid #323232;
}

#keleyi-com-nav li a{
padding: 0px 10px 0px 30px;
margin: 0px 0;
line-height: 40px;
text-decoration: none;
border-right: 1px solid #636161;
height: 40px;
color: #FFF;
text-shadow: 1px 1px 1px #66696B;
}


#keleyi-com-nav li:hover{
background: #010101;
}
#keleyi-com-nav li a{
display: block;
}
#keleyi-com-nav ul li {
border-right:none;
border-bottom:1px solid #DDDDDD;
width:170px;
height:39px;
}
#keleyi-com-nav ul li a {
border-right: none;
color:#6791AD;
text-shadow: 1px 1px 1px #FFF;
border-bottom:1px solid #FFFFFF;
}
#keleyi-com-nav ul li:hover{background:#DFEEF0;}
#keleyi-com-nav ul li:last-child { border-bottom: none;}
#keleyi-com-nav ul li:last-child a{ border-bottom: none;}
/* Sub menus */
#keleyi-com-nav ul{
display: none;
visibility:hidden;
position: absolute;
top: 40px;
}

/* Third-level menus */
#keleyi-com-nav ul ul{
top: 0px;
left:170px;
display: none;
visibility:hidden;
border: 1px solid #DDDDDD;
}
/* Fourth-level menus */
#keleyi-com-nav ul ul ul{
top: 0px;
left:170px;
display: none;
visibility:hidden;
border: 1px solid #DDDDDD;
}

显示全文