Common Css [记录]

clearFix

  .cf:after{ content: ''; display: block; clear: both; height: 0; overflow: hidden; visibility: hidden;}

  .cf{zoom: 1;}

一行文字...

  .ellip{overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}

重置

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,th,td{margin:0;padding:0}
        ul,ol,li{list-style: none;}
        fieldset,img{border:0}img{display:block}ol,ul{list-style:none}
        em{font-style:normal}
        input,button,select,textarea{outline:none}
        textarea{resize:none}
        i,s{font-style:normal;text-decoration:none}
        .clearfix:before,.clearfix:after{display:table;content:""}
        .clearfix:after{clear:both}
        .clearfix{zoom:1}
        img{auto9}
        video embed,video object,video iframe{100%;height:auto}

        html{font-size: 14px;}
        body{background: #fff;font-size: 14px;}
原文地址:https://www.cnblogs.com/caiCheryl/p/6117076.html