1. 程式人生 > >PC端CSS重置全域性樣式

PC端CSS重置全域性樣式

  1. /*==全域性樣式==*/
  2. *{padding:0;margin:0;}
  3. div,dl,dt,dd,form,h1,h2,h3,h4,h5,h6,img,ol,ul,li,table,th,td,p,span,a{border:0;}
  4. img,input{border:none;vertical-align:middle;}
  5. body{font-family:Tahoma,Arial,Helvetica,"微軟雅黑";font-size:12px;text-align:left;background:#FFF;color:#333;}
  6. html{overflow-y:scroll;}
  7. ul,ol{list-style-type
    :none;}
  8. th,td,input{font-size:12px;}
  9. h3{font-size:14px;}
  10. button{border:none;cursor:pointer;font-size:12px;background-color:transparent;}
  11. select{border-width:1px;_zoom:1;border-style:solid;padding-top:2px;font-size:12px;}
  12. .clearfix:after{content:".";display:block;height:0;visibility:hidden;clear:both;}
  13. .clearfix{zoom:1;}
  14. a:link,a:visited{text-decoration:none;color:#333;}
  15. a:hover,a:active{text-decoration:underline;color:#f60;}