base.css默认公共样式

html,body,h1,h2,h3,h4,h5,h6,div,p,ul,li,ol,p {
    margin: 0;
    padding: 0;
}
input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
}
li {
    list-style: none;
}
a {
    display: block;
    text-decoration: none;
}
img{
    width: 100%;
    display: block;
}
// 清除浮动
.clearfix:after, .clearfix:before{
    clear:both;
    content:'.';
    display:block;
    width: 0;
    height: 0;
    visibility:hidden;
}
.clearfix{
    zoom: 1;
}
@media (min-width: 768px) {
    html{
        font-size: 12px;
    }
}
@media (min-width: 992px) {
    html{
        font-size: 18px;
    }
}
@media (min-width: 1200px) {
    html{
        font-size: 24px;
    }
}

 

posted @ 2018-03-29 10:34  白纱茗-度C  阅读(294)  评论(0编辑  收藏  举报