我需要一个类似这样的代码:
<div style="templateCSS:none">Content that has mysterious WordPress template CSS applied on it</div>
我不想用另一种内联样式覆盖它,我只想删除所有内容。
最佳答案
我想您可以为元素的每个属性使用 CSS3 关键字 initial
。像这样:
HTML
<div class="reset-style">Content that has mysterious WordPress template CSS applied on it</div>
CSS
.reset-style{
margin : initial;
margin-bottom : initial;
margin-left : initial;
margin-right : initial;
margin-top : initial;
/* All the css properties*/
}
关于css - 我需要内联样式代码来消除 wordpress 模板样式 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26042815/