JQuery使用积累

http://blog.chinaunix.net/space.php?uid=21153026&do=blog&cuid=2041189
$(".backgroundDiv").css({"opacity":"0.5"}).fadeIn('normal');
var divWidth = $(".info").width();
var divHeight = $(".info").height();

-----------------------------
var params={ 
  width: "toggle", //"100px",150
  height:"toggle",//"100px",150
  opacity: "toggle"//show,hidden
  };
  $("#testDiv1").animate(params,"slow",function(){
    $("#testDiv1").animate(params,"slow",function(){
        //alert("动画结束.");
    }); 
  });

------------------------------

你可能感兴趣的:(JQuery使用积累)