jquery中怎么实现手风琴特效(jquery,开发技术)

时间:2024-04-29 05:06:53 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

效果:

jquery中怎么实现手风琴特效

实例如下所示:

<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title><style>*{padding:0px;margin:0px;}li{width:80px;height:300px;float:left;overflow:hidden;list-style:none;}</style><scripttype="text/javascript"src="http://code.jquery.com/jquery-1.10.2.min.js"></script></head><body><script>$(function(){$("ulli").mouseover(function(){$(this).stop().animate({width:350},500)//stop函数:停止当前正在运行的动画//siblings:遍历$(this).siblings().stop().animate({width:80},500)//anmate:500ms后将其width变为80px;})})</script><div><ul><li><imgsrc="1.jpg"></li><li><imgsrc="2.jpg"></li><li><imgsrc="3.jpg"></li><li><imgsrc="4.jpg"></li><li><imgsrc="5.jpg"></li></ul></div></body></html>
 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:jquery中怎么实现手风琴特效的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:jQuery怎么实现二维码扫描功能下一篇:

32 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18