jquery设置css,animate设置多个属性

$("p").css("color","red");
$("p").css({
  "font-size":"8px",
  "background-color":"#8888888"
});

$("div").animate({"width":"200px"});
$("div").animate({
  "width":"200px",
  "height":"300px"
});
 
posted @ 2017-05-02 11:29  佟舟  阅读(5126)  评论(0编辑  收藏  举报