body,p,h1,h2,h3,h4,h5,h6,ul,ol,dl,li,dt,dd{
/* 默认有边距,都要清除 */
margin: 0;
padding: 0;
/*字体设置*/
font-size: 14px;
font-family: "Microsoft Yahei",sans-serif;
color: #999;
/* 去掉列表的原点 */
list-style: none;
/* 默认鼠标 */
cursor: default;
}
body{
margin: auto;
}
*{
box-sizing: border-box;
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
}
/*可选*/
html,body{
width: 100%;
height: 100%;
}
/*行内块元素*/
input,img{
margin: 0;
padding: 0;
border: 0 none;
outline-style: none;
vertical-align: bottom;
}
/*行内元素*/
a,a:active,a:visited{
/*下划线和颜色*/
text-decoration: none;
color: #000;
}
a:hover{
color:#ccc;
}
textarea{
/* 边框清零 */
border:none;
/* 轮廓线清零 */
outline: none;
/* 防止文本域被随意拖拽 */
resize: none;
}
i{
/*文字样式*/
font-style: normal;
}
table{
/*边框合并*/
border-collapse:collapse;
border-spacing:0;
}
/* 使用伪元素清除浮动 */
.clearfix::before,
.clearfix::after{
content:"";
height: 0;
line-height: 0;
display: block;
visibility: none;
clear: both;
}
.clearfix {
*zoom: 1;
}
/* 版心*/
.w{
width: 1883px;
margin: 0 auto;
}
/*可选*/
/*单选框和复选框的配置,一般是分开的*/
input[type="radio"],input[type="checkbox"]{
appearance: none;
-webkit-appearance: none;
outline: none;
display: none;
}
label{
display: inline-block;
cursor: pointer;
}