清除样式表

   body,input,select,button{
        /*font: 12px/1 Tahoma, Helvetica, Arial, "宋体", sans-serif;*/
        font: 12px/1 Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif; /* 用 ascii 字符表示,使得在任何编码下都无问题 for PC端 */
    }

    body{font-size:12px;line-height:166.6%;}  /*pc端常设置字体大小及间距*/
    h1 { font-size: 18px; /* 18px / 12px = 1.5 */ }
    h2 { font-size: 16px; }
    h3 { font-size: 14px; }
    h4, h5, h6 { font-size: 100%; }
    address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
    code, kbd, pre, samp, tt { font-family: "Courier New", Courier, monospace; } /* 统一等宽字体 */
    small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */

    body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,
    dl, dt, dd, ul, ol, li, pre, /* text formatting elements 文本格式元素 */
    fieldset, lengend, button, input, textarea, /* form elements 表单元素 */
    th, td { margin:0;padding:0;}
    input,button,select,img{margin:0;line-height:normal}
    select{padding:1px}
    ul,ol{list-style:none}
    select,input,button,button img,label{vertical-align:middle}
    header,footer,section,aside,nav,hgroup,figure,figcaption{display:block;margin:0;padding:0;border:none;} /*HTML5标签变块级*/
    a{text-decoration:none;} /*重置链接下划线*/
    img{border:none;}

    /* 浮动及边常用边距  */
    .fL{float:left;}
    .fR{float:right;}
    .mL10{margin-left:10px;}
    .mB10{margin-bottom:10px;}

    /*清除浮动*/
    .clear{clear:both;}
    .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
    .clearfix{display:inline-block}
    * html .clearfix{height:1%} /* Hides from IE-mac \*/
    .clearfix{display:block}/* End hide from IE-mac */

作者:huang100qi
来源:CSDN
原文:https://blog.csdn.net/huang100qi/article/details/29826415
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/weixin_43693233/article/details/84321558