美文网首页
css清除默认样式和设置公共样式

css清除默认样式和设置公共样式

作者: 泰格先森 | 来源:发表于2018-01-11 16:30 被阅读0次

    /*公共样式--开始*/

    html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {

        margin:0;

        padding:0;

    }

    *{box-sizing:border-box;}

    html, body {

    min-height:100%;

    }

    body {

        font-family:"Microsoft YaHei";

        font-size:14px;

        color:#333;

    }

    ul,ol,li {

    list-style:none;

    }

    img {

    border:none;

        vertical-align:middle;

    }

    a {

    text-decoration:none;

     color:#232323;

    }

    table {

        border-collapse:collapse;

        table-layout:fixed;

    }

    input, textarea {

        outline:none;

        border:none;

    }

    textarea {

        resize:none;

        overflow:auto;

    }

    .clearfix {

        zoom:1;

    }

    .clearfix:after {

        content:".";

        width:0;

        height:0;

        visibility:hidden;

        display:block;

        clear:both;

        overflow:hidden;

    }

    .fl {

        float:left

    }

    .fr {

        float:right

    }

    .tl {

        text-align:left;

    }

    .tc {

        text-align:center

    }

    .tr {

        text-align:right;

    }

    .ellipse {

        overflow:hidden;

        text-overflow:ellipsis;

        white-space:nowrap;

    }

    .inline{

        display:inline-block;

        *display:inline;

        *zoom:1;

    }

    欢迎留言补充完善!

    相关文章

      网友评论

          本文标题:css清除默认样式和设置公共样式

          本文链接:https://www.haomeiwen.com/subject/pahtoxtx.html