京东css初始化代码.css 988 B

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