base.css 1007 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*清除元素默认的内外边距 */
  2. * {
  3. margin: 0;
  4. padding: 0
  5. }
  6. /*让所有斜体 不倾斜*/
  7. em,
  8. i {
  9. font-style: normal;
  10. }
  11. /*去掉列表前面的小点*/
  12. li {
  13. list-style: none;
  14. }
  15. /*图片没有边框 去掉图片底侧的空白缝隙*/
  16. img {
  17. border: 0; /*ie6*/
  18. vertical-align: middle;
  19. }
  20. /*让button 按钮 变成小手*/
  21. button {
  22. cursor: pointer;
  23. }
  24. /*取消链接的下划线*/
  25. a {
  26. color: #666;
  27. text-decoration: none;
  28. }
  29. a:hover {
  30. color: #e33333;
  31. }
  32. button,
  33. input {
  34. font-family: 'Microsoft YaHei', 'Heiti SC', tahoma, arial, 'Hiragino Sans GB', \\5B8B\4F53, sans-serif;
  35. outline: none;
  36. }
  37. body {
  38. background-color: #fff;
  39. font: 12px/1.5 'Microsoft YaHei', 'Heiti SC', tahoma, arial, 'Hiragino Sans GB', \\5B8B\4F53, sans-serif;
  40. color: #666
  41. }
  42. .hide,
  43. .none {
  44. display: none;
  45. }
  46. /*清除浮动*/
  47. .clearfix:after {
  48. visibility: hidden;
  49. clear: both;
  50. display: block;
  51. content: ".";
  52. height: 0
  53. }
  54. .clearfix {
  55. *zoom: 1
  56. }