每个页面通用的CSS:global.css 对某些标签进行初始化样式设置 加些特定的margin值 等

来源:互联网 发布:北京汽车配件软件 编辑:程序博客网 时间:2024/05/24 06:25

每个页面通用的CSS:global.css.txt

 

 

[css] view plaincopy
  1. @charset "utf-8";  
  2. /* CSS Document */  
  3. /* ========= reset ========= */  
  4. body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,p{  
  5.     border0;margin0;padding0;font-size100%;font-weightnormal;font-stylenormal;text-decorationnone;  
  6. }  
  7. table{border-collapse:collapse;border-spacing:0;}  
  8. li {list-style:none;}  
  9. img{border:none;}  
  10. body{font:12px/17px 'MS Pゴシック','MS PGothic','MS Gothic','Verdana',sans-serif;color:#595757;}  
  11. .clearfix:after {     
  12.   content".";     
  13.   clearboth;     
  14.   height0;     
  15.   visibilityhidden;     
  16.   displayblock;     
  17. }            /* 这是对Firefox进行的处理,因为Firefox支持生成元素,而IE所有版本都不支持生成元素 */     
  18. .clearfix {     
  19.   display: inline-block;          
  20. }                /* 这是对 Mac 上的IE浏览器进行的处理 */     
  21. /* Hides from IE-mac /*/     
  22. * html .clearfix {height1%;}        /* 这是对 win 上的IE浏览器进行的处理 */     
  23. .clearfix {displayblock;}        /* 这是对display: inline-block;进行的修改,重置为区块元素*/     
  24. /* End hide from IE-mac */    
  25.   
  26. /* A */  
  27. a{color:#00a0e9;text-decoration:none;}  
  28. a:hover{color:#00a0e9;text-decoration:underline;}  
  29. /* ========= margin ======== */  
  30. .mt10{margin-top:10px;}  
  31. .mt20{margin-top:20px;}  
  32. .mb5{margin-bottom:5px;}  
  33. .mb10{margin-bottom:10px;}  
  34. .mb15{margin-bottom:15px;}  
  35. .mb20{margin-bottom:20px;}  
  36. .ml20{margin-left:20px;}  
  37. input[type="text"]{  
  38.     height:18px;  
  39. }  
  40. .ac{text-align:center;}  
  41. hr.cb{  
  42.     visibility:hidden;  
  43.     height:0;  
  44.     border:none;  
  45.     clear:both;  
  46.     font-size:0;  
  47.     line-height:0;  
  48.     overflow:hidden;  
  49. }  

转自:http://blog.csdn.net/jiemushe1814/article/details/6387372

更多0

原创粉丝点击