CSS公共方法-去掉各类默认属性

web开发 2017-01-16

body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,dl,dt,dd,input{margin:0;padding:0;}
body{font-size:12px;}
img{border:none;}
input,select,textarea{outline:none;}
textarea{resize:none;}
a{text-decoration:none;}

/*清浮动*/
.clearfix:after{content:"";display:block;clear:both;}
.clearfix{zoom:1;}

选择
::selection{background-color:#669900;color:#ffffff;text-shadow:none;}
::-moz-selection {background-color:#669900; color:#ffffff;text-shadow:none;}

去掉a的下划线
a {blr:expression(this.onFocus=this.blur)} /*if IE*/

相关推荐