*{
padding: 0;
margin: 0;
}
#nav{
margin: 100px auto;
position: relative;
}
ul{
position: absolute;
border: 1px solid green;
z-index: 99;
overflow: hidden;
}
li{
float: left;
width: 100px;
height: 40px;
text-align: center;
line-height: 40px;
list-style: none;
cursor: pointer;
}
#color{
width: 100px;
height: 40px;
JS--导航栏选中部分的色块滑动选中
最新推荐文章于 2023-04-11 17:29:32 发布