base.css 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*(1)清除默认样式*/
  2. html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img,input,div{ margin:0; padding:0; }
  3. fieldset, img,input,button { border:0 none; padding:0;margin:0;outline-style:none; } /*去掉input等聚焦时的蓝色边框*/
  4. ul,li,ol{ list-style:none; }
  5. select, input { vertical-align:middle;}
  6. textarea { resize:none; } /*防止拖动*/
  7. img {border:0; vertical-align:middle; }
  8. /* 去掉图片低测默认的3像素空白缝隙*/
  9. table { border-collapse:collapse; }
  10. a {text-decoration:none; }
  11. /*固定盒子*/
  12. *{
  13. box-sizing: border-box;
  14. }
  15. /* 清除ie的浮动问题 */
  16. .clearfix {
  17. zoom:1; /* for ie6 & ie7 */
  18. }
  19. /*万能清除法*/
  20. .clearfix::after{
  21. content:"";
  22. clear:both;
  23. display:block;
  24. height:0;
  25. overflow:hidden;
  26. visibility:hidden;
  27. }
  28. /*设置浮动*/
  29. .fl{
  30. float:left;
  31. }
  32. .fr{
  33. float:right;
  34. }
  35. /*公共类*/
  36. .container { /*内容、版心 提取 */
  37. width: 1210px;
  38. /*100%是继承父元素的高或者宽*/
  39. height: 100%;
  40. /*background-color:yellow;*/
  41. margin:0 auto;
  42. }