jQuery属性和样式

属性
attr(name|pro|key,val|fn)
removeAttr(name) prop(n|p|k,v|f)
removeProp(name)
CSS 类
addClass(class|fn)
removeClass([class|fn])
toggleClass(class|fn[,sw])
HTML代码/文本/值
html([val|fn]) text([val|fn])
val([val|fn|arr])
CSS
css(name|pro|[,val|fn])1.9*
位置
offset([coordinates])
position()
scrollTop([val])
scrollLeft([val])
尺寸
height([val|fn])
width([val|fn])
innerHeight()
innerWidth()
outerHeight([soptions])
outerWidth([options])

原文地址:https://www.cnblogs.com/chen991126/p/14012923.html