<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>菜单收缩展开</title>
</head>
<style>
body{
font:16px "Microsoft YaHei",sans-serif;
}
ul{
list-style:none;
padding: 0;
}
a{
text-decoration:none;
}
.nav-list{
width:200px;
border-bottom:1px solid #ccc;
}
.nav-list h3{
position: relative; /*相对定位*/
margin:0;
padding: 10px 20px;
color:#fff;
font-size:16px;
line-height:20px;
font-weight: normal;
background-color:#333;
border-top:1px solid #ccc;
cursor:pointer;
}
.nav-list h3:hover{
background-color
Jquery菜单收缩展开
最新推荐文章于 2023-01-06 14:09:35 发布