js向id添加css属性值

js向id添加css属性值

1、jquery:$("#id").css("background","#000")$("*这个是你的id,前面要用#,如果class就是.(点),和写css获取
html-css70