CSS弹性布局初始化
*, ::before, ::after { margin: 0; padding: 0; /*清除移动端默认的点击高亮效果*/ -webkit-tap-highlight-color: transparent; /*设置以边框开始计算宽度*/ -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-text-size-adjust: none; }
body,html { width: 100%; color: #333; font-family: "Microsoft YaHei", sans-serif; position: relative; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; } em{ font-style: normal; } input,select,option { border: none; outline: none; /*清除移动端默认的表单样式*/ -webkit-appearance: none; }
/*common css*/ .fl { float: left; }
.fr { float: right; }
img { display: block; }
.clearfix::before, .clearfix::after { content: ""; height: 0; line-height: 0; display: block; visibility: hidden; clear: both; }
完美源码 » CSS弹性布局初始化