zoukankan      html  css  js  c++  java
  • 最常用的reset代码

    
    

    /*css reset code */

    
    

    /**** 文字大小初始化,使1em=10px *****/
    body { font-size:12px;}

    
    

    /*字体边框等初始化*/
    body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {padding: 0;margin: 0;}
    table {border-collapse: collapse;border-spacing: 0;}
    fieldset,img,input,select,button{border: 0;}
    address,caption,cite,code,dfn,th,var {font-weight: normal;font-style: normal;}
    ol,ul {list-style: none;}
    caption,th {text-align: left;}
    h1,h2,h3,h4,h5,h6 {font-weight: normal;font-size: 100%;}
    q:before,q:after {content:'';}
    abbr,acronym { border: 0;}
    a {text-decoration:none;}
    .clearfix:after {visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;}
    * html .clearfix { zoom: 1; } /* IE6 */
    *:first-child+html .clearfix { zoom: 1; } /* IE7 */

     
  • 相关阅读:
    硬件IC汇总
    stm8s103调试注意点
    感悟短句
    USB接口
    液晶屏驱动注意
    四数之和
    所有奇数长度子数组的和
    秋叶收藏集
    删除中间节点
    组合总和
  • 原文地址:https://www.cnblogs.com/beata/p/5724735.html
Copyright © 2011-2022 走看看