如果我的html中有以下内容:
<div style="height:300px; width:300px; background-color:#ffffff;"></div>
Run Code Online (Sandbox Code Playgroud)
这在我的css样式表中:
div {
width:100px;
height:100px;
background-color:#000000;
}
Run Code Online (Sandbox Code Playgroud)
有没有办法,使用javascript/jquery,删除所有内联样式,只留下由CSS样式表指定的样式?