1.最简单
*{ padding:0; margin:0; list-style: none; text-decoration: none; box-sizing: border-box; } html,body,.app{ height:100%; }2.reset.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, 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 { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; }3.自己用过的
body, div, span, p, ul, li, a, img, input, h1, h2, h3, h4, i, nav, header, footer, button { margin: 0; padding: 0; box-sizing: border-box; /* 将所有的标签转换成内减模型的盒子 */ } img { vertical-align: middle; border: none; } input { border: none; outline: none; } a { text-decoration: none; color: #000; } i { font-style: normal; } li { list-style: none; } body { font-size: 12px; line-height: 1; background-color: #f5f5f5; } .clearfix::after { content: "."; clear: both; display: block; height: 0; visibility: hidden; } .clearfix { *zoom: 1; }4.用过的2
/* css初始化 */ body,div, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:0; padding:0;box-sizing: border-box; } body, button, input, select, textarea { font:12px/1.5tahoma, arial, \5b8b\4f53; } h1, h2, h3, h4, h5, h6{ font-size:100%; } address, cite, dfn, em, var { font-style:normal; } code, kbd, pre, samp { font-family:couriernew, courier, monospace; } small{ font-size:12px; } ul,li, ol { list-style:none; } a { text-decoration:none; color: #666;} a:hover { text-decoration:underline; } sup { vertical-align:text-top; } sub{ vertical-align:text-bottom; } legend { color:#000; } fieldset, img { border:0; } button, input, select, textarea { font-size:100%; } table { border-collapse:collapse; border-spacing:0; } .w{ width: 1200px; margin: 0 auto; }