2010-01-21 59 views
-1

为什么Eric Meyer在他的css reset中没有建议,表示形式,弃用形式和非语义形式的标记? (I.e. applet,iframe,big,s,small,strike。)使用表示和不赞成使用的标记重置CSS

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 
{ 
    margin: 0; 
    padding: 0; 
    border: 0; 
    outline: 0; 
    font-weight: inherit; 
    font-style: inherit; 
    font-size: 100%; 
    font-family: inherit; 
    vertical-align: baseline; 
} 

回答

11

因为人们仍然在使用它们,不幸的是。在你的样式表中引用已弃用的元素没有任何不正确的地方。在标记中实际使用它们是无效的。迈耶的重置是为了修复你的元素渲染的方式,而不是修复你选择用来开始的元素。

0

这是一个“以防万一”除了重置。他实际上曾建议不要使用已弃用的标签。

如果您正在关注Meyer,Cederholm,Collison等标准大师,等等,那么你可能应该已经知道不要使用它们了。

相关问题