可能重复:
jQuery - remove style added with .css() function如何删除样式属性
我想从DIV删除样式属性,我不能使用的removeAttribute和removeProperty作为的removeAttribute删除整体风格和删除属性不适用于ie。 有没有其他办法可以做到这一点。
<div style="visiblity:hidden;margin-right:10px;margin-left:10px">
我想仅删除可见性样式属性。
您是否尝试过解析和编辑使用JavaScript'style'属性的值? – 2012-08-16 12:07:52
@RichardEv恕我直言,这将是一个大锤打击螺母... – Alnitak 2012-08-16 12:10:16