* {
padding:0px;
margin:0px;
font-size:12px;
}
ul {
list-style:none;
}
#main {
margin:0 auto;
width:1264px;
height:590px;
background:url(./images/bg.jpg) no-repeat;
position:relative;
}
ul#memu {
list-style:none;
position:absolute;
left:38px;
top:20px;
width:190px;
}
a {
color:#7B7B7B;
text-decoration:none;
}
ul#memu li.firstli {
color:#7B7B7B;
padding-left:5px;
background:url(./images/icon3.jpg) no-repeat left center;
position:relative;
}
ul#memu li.firstli a.firsta {
padding-left:5px;
display:block;
border-top:1px solid #fff;
border-bottom:1px solid #fff;
height:24px;
line-height:26px;
width:170px;
}
ul#memu li.firstli a.on {
border-top:1px solid #e3e4e4;
border-bottom:1px solid #e3e4e4;
height:24px;
background:url(./images/icon.jpg) no-repeat right center;
z-index:9999;
}
.secondNav {
position:absolute;
left:180px;
top:0px;
border:1px solid red;
z-index:33;
width:400px;
height:300px;
background:#fff;
border:1px solid #e4e4e4;
padding:20px;
box-shadow:5px 5px 10px #e4e4e4;
display:none;
}
h4 {
width:100px;
color:#FF6600;
padding-right:5px;
background:url(./images/icon2.jpg) no-repeat right center;
}
.secondNav a {
line-height:26px;
padding:3px;
}
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3