html, body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address,
big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong,
sup, sub, tt, var, u, i, center, ul, ol, li, dl, dt, dd, tfoot, caption, form, fieldset,
legend, input, button, textarea, select, label, applet, object, iframe, audio, video,
canvas, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu,
nav, section, summary {
font-family: inherit; line-height: inherit;
vertical-align: baseline; border: 0; outline: 0; padding: 0; margin: 0;
}
我不希望這樣會影響div.base
中的任何元素。如何排除CSS選擇器應用於類內的元素?
您有解決方案嗎?
「我相信OP想爲他列入他的問題,適用於所有情況的聲明,而不是div.base的孩子 - 帕特里克·穆爾」 –
只是重寫這些屬性'與div.base' '!important' –