任何人都可能使用某些html(5)reset.css
,例如:http : //html5doctor.com/html-5-reset-stylesheet/
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;
}
...
但是我做了:
* {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
好处:
谁能告诉我我的解决方案是否有问题(任何我不知道的浏览器问题)?
或在这种情况下列出几乎所有标签名称的好处可能是什么?
我有同样的问题,所以我搜索了一下,发现了这篇文章:
http://www.cssreset.com/what-is-a-css-reset/
其中指出:“如果未正确编写CSS重置,您可能会发现CSS规则本身已被应该作为基线的代码所覆盖!这在使用通用选择器重置时经常会出现问题,但不会如果使用编写良好的代码(例如HTML5 Doctor CSS重置),通常是一个问题。”
希望这可以帮助!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句