我的问题是是否可以重置单个div及其包含的所有元素的css样式(很多个)。
我问这个问题是因为我发现了一个jquery shoutbox的教程,它有自己的css文件。 我不能只将样式复制到我的css文件中,因为它会破坏已经设置好的页面其他部分的样式。
我想使用一个div-wrapper,并仅将所有这些重置应用于该div。只是我不确定是否可能。
我只知道这种方法。
我问这个问题是因为我发现了一个jquery shoutbox的教程,它有自己的css文件。 我不能只将样式复制到我的css文件中,因为它会破坏已经设置好的页面其他部分的样式。
我想使用一个div-wrapper,并仅将所有这些重置应用于该div。只是我不确定是否可能。
我只知道这种方法。
#divwrapper td{ set styles }
@CHARSET "UTF-8";
/******* GENERAL RESET *******/
html, body, div, span, applet, object, iframe, 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, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td {
border:0pt none;
font-family:inherit;
font-size: 100%;
font-style:inherit;
font-weight:inherit;
margin:0pt;
padding:0pt;
vertical-align:baseline;
}
谢谢,Richard