新增HTML5标签cssReset
为了确保各个浏览器初始化时页面布局一致,需要使用css在重置以下页面标签:
@charset "utf-8"; body, h1, h2, h3, h4, h5, h6, hr, p, dl, dt, dd, ul, ol, th, td, pre, blockquote, fieldset, lengend, input, button, textarea, form{margin: 0; padding: 0;} body, input, button, textarea, select{font-size:12px; font-family: "Microsoft YaHei", Helvetica, Tahoma, Arial, sans-serif;} h1, h2, h3, em, i, th, caption, cite, code, address{font-style: normal; font-weight: normal;} ul, ol{list-style: none;} img, fieldset{border: 0 none;} input, textarea{outline: none;} table{border-collapse: collapse; border-spacing: 0;} button, input, select, label{vertical-align:middle;} a{color: #333; outline: none; text-decoration: none;} a:focus{outline: none;} a:hover{text-decoration: underline;} a:active{star:expression(this.onfocus=this.blur());} .clearfix{_zoom:1; /*height:1%;*/} .clearfix:after{content:""; clear: both; display:block;} /*html5新增标签css reset*/ header, hgroup, nav, menu, main, section, article, summary, details, aside, figure, figcaption, footer{display: block;}