jquery实现页面右下角弹框效果

来源:互联网 发布:飞扬动力软件 编辑:程序博客网 时间:2024/05/16 08:24

$(document).ready(function(){

    var hheight=$(".box").height();    //202是盒子的高度    var theight=hheight-202;    // $(".box").css({bottom:-hheight+"px"});    $(".box").animate({bottom:theight+"px"},2500);    $("#adclose").click(function(){        $(".box").animate({height:0},2000);    });})