jquery實現最簡單的下拉選單
阿新 • • 發佈:2019-02-16
*{
padding:0;
margin:0;
}
.menu {
width: 120px;
background-color: #CCC;
position: relative;
height: 26px;
}
.menu .sub {
position: absolute;
display :none;
left: 0px;
top: 26px;
background-color: #9CF;
width: 100%;
}
.menu .sub a {
text-decoration: none;
color: #0c80d7;
}