jquery怎么移除style属性
jquery
在jquery中,可以利用removeAttr()方法来移除style属性,该方法的作用就是从被选元素中移除指定属性,只需要将该方法的的参数设置为“style”即可;语法为“$(selector).removeAttr("style")”。
本教程操作环境:windows7系统、jquery1.10.2版本、Dell G3电脑。
style属性是HTML核心属性,用于为元素指定内联样式(inline style)。
style属性将覆盖其他全局样式,比如在