jQuery-css操作:
jQuery.css(name,value)
修改单个样式
name:样式名 value:样式值jQuery.css(obj)
修改多个样式
$("li").css({
backgroundColor:"pink",
color: "red",
fontSize:"32px",
border: "1px solid black"
});
jQuery.css(name)
获取样式:只会返回第一个元素对应的值。