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

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

 

 

[css]  view plain copy
  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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值