例如,Meyer重置包含一长串元素1,我相信可以将其替换为*?。
*
我已经看到了一些用法:
* { margin: 0; padding: 0; }
但是,更多的“高级”重置似乎与明确说明标签有关。
我没有看到覆盖在标签列表中唯一的元素 被 覆盖(我相信)用*的input,button和select-the埃里克迈耶复位,其实并没有出现真正处理所有这些元素。如果要避免重置这些元素,那就是问题……您为什么不呢?浏览器显然 并不 都显示相同的表单元素。
input
button
select
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
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
您猜对了-原因是form元素。
form
border: 0例如input,如果设置为,则会丢失本机样式。
border: 0
而且,没有办法恢复默认样式。