body,h1,h2,h3,h4,h5,h6,ul,ol,dl,dd,p,input{
margin:0;
padding:0;
}
a{
text-decoration: none;
color: #666;
}
input:focus{
outline:none;
}
ul,ol{
list-style: none;
}
img{
vertical-align: top;
border: 0;
}
input,select,textarea{
color: inherit;
font-size: inherit;
}
/button,input[type=“button”],input[type=“file”],input[type=“submit”]{
cursor: pointer;
}/
.clearfix:after{
content:".";
clear:both;
display:block;
}
html{
/7.5为设计稿的宽度/
font-size: -webkit-calc(100vw/7.5);
/此时定义了在750的设计稿下 1rem=100px/
}
body{
font-size: 0.24rem;
}
css 初始样式
最新推荐文章于 2024-07-20 16:31:54 发布