您当前的位置: 首页 >  动画

暂无认证

  • 0浏览

    0关注

    101061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

[JQ权威指南]SlideToggle()方法的动画效果自动切换图片高度

发布时间:2016-07-01 13:32:34 ,浏览量:0

 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SlideToggle()title> <script type="text/javascript" src="../jquery-2.1.4.js"> script> <style type="text/css"> .divFrame{ border:solid 1px #666; background-color:#eee; padding:5px; width:260px;} .divFrame img{ border:solid #eee; padding:2px;} style> <script type="text/javascript"> $(function(){ $(".divFrame").click(function(){ $("img").slideToggle(3000,function(){ $("img").css("border","solid 1px #ccc"); 
                })
            })
        }) script> head> <div class="divFrame"> <img src="Images/1.png" alt=" " title="风景图" /> div> <body> body> html> 
关注
打赏
1655516835
查看更多评论
立即登录/注册

微信扫码登录

0.1113s