标签:
折叠树形导航菜单实例<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<title></title>
<style>
body{font-size:10.5pt;}
dt{
background:#ccc;
width:500px;
}
</style>
<script src="jquery/1.9.0/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(‘#faq‘).find(‘dd‘).hide();
$(‘#faq‘).find(‘dt‘).click(function() {
var answer = $(this).next();
if (answer.is(‘:visible‘)) {
answer.slideUp();
} else {
answer.slideDown();
}
});
});
</script>
</head>
<body>
<dl id="faq">
<dt>零零H5网</dt>
<dd>欢迎来到零零H5网,希望提供良好的建议与意见</dd>
<dt>前端教程</dt>
<dd>CSS3教程</dd>
<dt>PHP教程</dt>
<dd>本站地址是www.00h5.com</dd>
</dl>
</body>
</html>
否则的话,就动画方式下拉
标签:
原文地址:http://www.cnblogs.com/00h5/p/4826857.html