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{width:auto\9}
        video embed,video object,video iframe{width:100%;height:auto}

        html{font-size: 14px;}
        body{background: #fff;font-size: 14px;}

 

posted @ 2016-11-30 11:38  丶七月小先生丶  阅读(204)  评论(0编辑  收藏  举报