/* ========================================================================== 清除默认内边距和外边距 ========================================================================== */ body, dl, dd, h1, h2, h3, h4, h5, h6, p, form { margin: 0; } ol, ul { margin:0; padding:0; } /* ========================================================================== 设置默认文字样式 ========================================================================== */ html { font-size: calc((16 * 100vw) / 320); -webkit-text-size-adjust: none; } body, button, input, select, textarea { font-family: "microsoft yahei", arial, sans-serif; line-height: 1.4; } h1, h2, h3, h4, h5, h6 { font-size: 100%; } em, i { font-style: normal; } /* ========================================================================== 清除列表默认样式 ========================================================================== */ ol, ul { list-style: none; } /* ========================================================================== 重置表格默认属性 ========================================================================== */ table { border-collapse: collapse; border-spacing: 0 } /* ========================================================================== 重置 a 标签默认属性 清除移动端下点击添加默认背景 ========================================================================== */ a { text-decoration: none; -webkit-tap-highlight-color:rgba(0,0,0,0); } /* ========================================================================== 清除浮动 ========================================================================== */ .clearfix { zoom: 1; } .clearfix::after { content: ""; display: block; height: 0; clear: both; visibility: hidden; }