1. 程式人生 > >每個頁面通用的CSS:global.css 對某些標籤進行初始化樣式設定 加些特定的margin值 等

每個頁面通用的CSS:global.css 對某些標籤進行初始化樣式設定 加些特定的margin值 等

每個頁面通用的CSS:global.css.txt

  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. /* A */
  26. a{color:#00a0e9
    ;text-decoration:none;}  
  27. a:hover{color:#00a0e9;text-decoration:underline;}  
  28. /* ========= margin ======== */
  29. .mt10{margin-top:10px;}  
  30. .mt20{margin-top:20px;}  
  31. .mb5{margin-bottom:5px;}  
  32. .mb10{margin-bottom:10px;}  
  33. .mb15{margin-bottom:15px;}  
  34. .mb20{margin-bottom:20px;}  
  35. .ml20{margin-left:20px;}  
  36. input[type="text"]{  
  37.     height:18px;  
  38. }  
  39. .ac{text-align:center;}  
  40. hr.cb{  
  41.     visibility:hidden;  
  42.     height:0;  
  43.     border:none;  
  44.     clear:both;  
  45.     font-size:0;  
  46.     line-height:0;  
  47.     overflow:hidden;  
  48. }