为什么我不能简单地重置:
* { margin :0;填充:0;字体大小:100%
代替:
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
最佳答案
首先你可以。
回答问题:因为您可能不希望所有元素都具有指定参数。例如,您那里没有输入、按钮等。
关于html - CSS 重置与 * 通配符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31948331/