jq设置样式

单个样式:

$(this).css("color","red");

多个样式:

$(this).css({color:"red",background:"black"});

获取样式值:

$(this).css("color")

posted @ 2013-08-30 11:54  tinyphp  Views(4168)  Comments(0)    收藏  举报