<html>
<body>
<details>
<summary>Copyright 2011.</summary>
<p>All pages and graphics on this web site are the property of W3School.</p>
</details>
</body>
</html>
放上去的话,用css的hover,先设置默认隐藏
.name{}display:none} .name:hover > .list{display:block}点击的话,用JQ的click
$(".name").click(function(){if($(".name").is(":hidden"))
$(".name").css("display","block")
else
$(".name").css("display","none")
})
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)