通用样式设置
*,
::after,
::before{
margin: 0;
padding: 0;
/*盒子模型*/
box-sizing: border-box;
-webkit-box-sizing: border-box;
/*字体*/
font-family: '微软雅黑', sans-serif;
/*取消默认点击高亮效果*/
-webkit-tap-highlight-color: transparent;
}
/*去除默认的样式*/
ol,ul{
list-style: none;
}
input{
border-style: none;
/*移除iOS原生显示样式*/
-webkit-appearance: none;
}
/*去掉 a 标签的下划线*/
a{
text-decoration: none;
}
.f_l{
float: left;
}
.f_r{
float: right;
}
/*清楚浮动*/
.clear_fix::before,
.clear_fix::after{
content: '';
display: block;
height: 0;
line-height: 0;
clear: both;
visibility: hidden;
}
每一步都是一个深刻的脚印