公共样式base.css
/*公共样式*/ /*css初始化*/ html,body,ul,li,ol,ul,dl,dd,dt,p,h1,h2,h3,h4,h5,h6,form,fieldset{ margin: 0; padding: 0; } /*fieldset组合表单中的相关元素*/ fieldset,img,input,button{ border: none; padding: 0; margin: 0; outline-style: none; } /*清除列表风格*/ ul,ol{ list-style: none; } input{ padding-top: 0; padding-bottom: 0; font-family: "simsun","宋体"; } select,input{ vertical-align: middle; } select,input,textarea{ font-size: 12px; margin: 0; } /*防止多行文本拖拽*/ textarea{ resize: none; } /*去掉图片底侧默认的3像素空白空隙*/ img{ border: 0; vertical-align: middle; } /*合并外边线*/ table{ border-collapse: collapse; } body{ font: 12px/150% arial,verdana,"\5b8b\4f53"; color: #666; background: #fff; } .clearfix:before,.clearfix:after{ content: ""; display: table; } .clearfix:after{ clear: both; } .clearfix{ *zoom: 1; } a{ color: #666; text-decoration: none; } a:hover{ color: #c81623; } h1,h2,h3,h4,h5,h6{ text-decoration: none; font-weight: normal; font-size: 100%; } s,i,em{ font-style: normal; text-decoration: none; } .col-red{ color: #c81623 !important; } /*公共类*/ .w{ width: 1210px; margin: 0 auto; } .fl{ float: left; } .fr{ float: right; } .al{ text-align: left; } .ac{ text-align: center; } .ar{ text-align: right; } .hide{ display: none; }
公共样式pc端