base.css 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. /*取消轮廓线 蓝色的*/
  36. outline: none;
  37. }
  38. body {
  39. background-color: #fff;
  40. font: 12px/1.5 'Microsoft YaHei', 'Heiti SC', tahoma, arial, 'Hiragino Sans GB', \\5B8B\4F53, sans-serif;
  41. color: #666
  42. }
  43. .hide,
  44. .none {
  45. display: none;
  46. }
  47. /*清除浮动*/
  48. .clearfix:after {
  49. visibility: hidden;
  50. clear: both;
  51. display: block;
  52. content: ".";
  53. height: 0
  54. }
  55. .clearfix {
  56. *zoom: 1
  57. }