例如,Meyer 重置有很长的元素列表1我相信可以用*
?
我已经看到了一些用途:
* {
margin: 0;
padding: 0;
}
但是更多“高级”重置似乎与明确说明标签有关。
我在标签列表中没有看到(我认为)被 a 覆盖的*
唯一元素是input
、button
和select
- 事实上,Eric Meyer 重置似乎根本没有真正处理这些元素。如果避免重置这些元素是问题......你为什么不呢?浏览器显然不会都以相同的方式显示表单元素。
1 如果你很好奇。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, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, I, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video