reset.css

119 阅读1分钟
@charset "utf-8";
 
/* reset.css */
* { box-sizing: border-box; } /* 內减模式 */
body { background-color: #f5f5f5; font: 16px/1.5 "Microsoft YaHei",Arial,Tahoma,Helvetica,\5b8b\4f53,sans-serif; color: #333; } /* 设置网页统一的字体大小、行高、字体系列相关属性 */
body,div,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,object,code,em,span,var,legend,button,input,textarea,th,td,a,img,header,footer,nav,aside,audio,datalist,section { margin:0; padding:0; border:0; outline:0; } /* 清除内外边距和边框轮廓 */
h1,h2,h3,h4,h5,h6 { font-weight: normal; font-size: 100%; }
address,caption,cite,code,dfn,em,i,strong,b,th,var { font-style:normal; font-weight:normal }
input,button,select,textarea { font-family:inherit; font-size:100%; }
ul,ol { list-style: none; } /* 去除列表默认样式 */
a { text-decoration: none; color: #333; } /* 去除a标签默认下划线,并设置默认文字颜色 */
img,input { vertical-align: middle; } /* 设置img和input的垂直对齐方式为居中对齐,去除img默认下间隙 */
textarea { resize:none } /* 禁止文本域拖拽 */
table { border-collapse:collapse; border-spacing:0 } /* 表格边框折叠 */
:focus { outline:0; } /* 去除获取焦点框的轮廓 */
/* 清除浮动 */
.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}
.clearfix::after {
  clear: both;
}
.overflow { overflow:hidden; }