</head>
<body>
<style>
#content{
text-indent:2em;
display:none;
}
</style>
<div id="first">
<h3 class="title">什么是编程词典?</h3>
<div id ="content">
明日编程词典系列软件是由近百名软件开发人员联手打造的;
..............................................
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#first h3.title").bind("click",function(){
$(this).next(.show();
})
});
</script>
</body>
为元素绑定事件
猜你喜欢
转载自blog.csdn.net/niudehao1/article/details/102942567
今日推荐
周排行