css 样式初始化

192 阅读1分钟
@charset "UTF-8";
/*默认utf-8*/
/*css初始化*/
*{
    box-sizing: border-box;
}
html,body,h1,h2,h3,img,fieldset, legend,form,ol,li,dl,ul,dd,p{
    margin: 0 ;
    padding:0;
}
fieldset,input,button,img{
    border:none;
    outline-style: none;
    margin: 0;
    padding:0;
}
ul , ol {
    list-style: none;
}
input{
    padding-top: 0;
    padding-bottom: 0;
    font-family: "宋体" ,"SimSun";
}
select,input,textarea{
    font-size: 12px;
    margin: 0;
}
/*防止拖动影响布局*/
textarea{
    resize: none;
}
/*去掉行间距的缝隙*/
img{
    border: none;
    vertical-align: middle;
}
table{
    border-collapse: collapse;
}
body{
    font: 12px/150% Arial, Verdana, "\5b8b\4f53"; /*宋体 unicode */
    color: #666;
    background: #fff;
}
.clearfix:before,.clearfix:after{
    content: "";
    display: table;
}
.clearfix:after{
    clear: both;
}
.clearfix{
    zoom: 1;
}
a{
    text-decoration: none;
    color:#666;
}
a:hover{
    color: #C81623;
}
h1, h2, h3, h4, h5, h6 {
    text-decoration: none;
    font-weight: normal;
    font-size: 100%;
}

/*废物利用*/
s, i, em {
    font-style: normal;
    text-decoration: none;
}
.fr{
    float: right;
}
.fl{
    float: left;
}