0

我需要一个类似的代码:

<div style="templateCSS:none">Content that has mysterious WordPress template CSS applied on it</div>

我不想用另一种内联样式覆盖它,我只想删除所有内容。

4

1 回答 1

0

我想您可以initial对元素的每个属性使用 CSS3 关键字。像这样的东西:

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*/
}

检查这个答案:Reset/remove CSS styles for element only

于 2014-09-25T16:12:09.957 回答