body{
font-family: Arial;
}
div{
color: red;
margin: 20px;
background: blue;
font-size: 17px;
}
<div id="div1">this should be styled with a blue background,
red text, and 17px Arial font</div>
<div id="div2">this should have no background, default font, etc. </div>
如何#div2
使用 jQuery 删除所有样式和所有继承的样式?
仅删除所有样式#div2,保留样式#div1