注意辨析:
元素属性是指标签内的属性
常用的核心属性:id,class,style,title
不常用的属性:alt,src,href,.....
***特殊:布尔属性也是元素属性***
写在head标签中style样式中的属性才是标题所说的css属性
如:width,height,color,background....
对于元素属性的删除:
$.css('width','')
对于css属性的删除
$.remove('class')
注意辨析:
元素属性是指标签内的属性
常用的核心属性:id,class,style,title
不常用的属性:alt,src,href,.....
***特殊:布尔属性也是元素属性***
写在head标签中style样式中的属性才是标题所说的css属性
如:width,height,color,background....
对于元素属性的删除:
$.css('width','')
对于css属性的删除
$.remove('class')