<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<Meta http-equiv="Content-Type" content="text/HTML; charset=utf⑻" />
<Title>jquery按步骤展开1个层</Title>
<style type="text/CSS">
*{margin:0;padding:0;}
body { Font-size: 13px; line-height: 130%; padding: 60px }
#panel { wIDth: 60px; border: 1px solID #0050D0 ;height:22px;overflow:hidden;}
.head { padding: 5px; background: #96E555; cursor: pointer;wIDth: 300px;}
.content { padding: 10px; text-indent: 2em; border-top: 1px solID #0050D0;display:block; wIDth:280px;}
</style>
<script src="/AJAXJs/jquery1.3.2.Js" type="text/JavaScript"></script>
<script type="text/JavaScript">
$(function(){
$("#panel").hover(function() {
$(this).stop(true)
.animate({height : "150" },200 )
.animate({wIDth : "300" },300 )
},function() {
$(this).stop(true)
.animate({height : "22" },200 )
.animate({wIDth : "60" },300 )
});
});
</script>
</head>
<body>
<div ID="panel">
<h5 class="head">鼠标悬停</h5>
<div class="content">
展开内容,展开内容,展开内容,展开内容,展开内容,展开内容,展开内容,展开内容,展开内容,展开内容。</div>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
</HTML> 总结
以上是内存溢出为你收集整理的jQuery按步骤展开一个层全部内容,希望文章能够帮你解决jQuery按步骤展开一个层所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)