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

Posted 佟舟

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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"
});
 

以上是关于jquery设置css,animate设置多个属性的主要内容,如果未能解决你的问题,请参考以下文章