注意,下边的这个样式文件,一定要根据其父端属性一一对应,不要以为是空的就是取消了。
利用 removeAttribute方法如:ele = document.getElementById('div1')
ele.removeAttribute('class')
注意,下边的这个样式文件,一定要根据其父端属性一一对应,不要以为是空的就是取消了。
利用 removeAttribute方法如:ele = document.getElementById('div1')
ele.removeAttribute('class')