what
想要移除写在style指定的css样式,网上找了很多方法,貌似都移除不了,其实可以巧妙的通过空字符就可做到
how
修改前属性内容:
<dl id="longporo" style="width:8px;height:88px">
移除width属性JS代码:
$("#longporo").css("width","");
修改后属性内容:
<dl id="longporo" style="height:88px">
ps:如果要移除style的所有属性可以直接:
$("#longporo").removeAttr("style","");