jQuery按步骤展开一个层

jQuery按步骤展开一个层,第1张

概述&lt!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt&lthtml xmlns="http://www.w3.or <!DOCTYPE HTML PUBliC "-//W3C//DTD xhtml 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd">
<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按步骤展开一个层所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1017435.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存