reset.css 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. body {
  2. margin: 0;
  3. font-family: "微软雅黑", "宋体", Arial, Helvetica, sans-serif;
  4. font-size: 14px;
  5. line-height: 1;
  6. background-color: #f3f3f3;
  7. }
  8. h1, h2, h3, h4, h5, h6 {
  9. margin: 0;
  10. font-size: 100%;
  11. font-weight: normal;
  12. }
  13. ul, ol {
  14. list-style: none;
  15. margin: 0;
  16. padding: 0;
  17. }
  18. p, dl, dd {
  19. margin: 0;
  20. }
  21. img {
  22. vertical-align: middle;
  23. border: none;
  24. }
  25. a {
  26. text-decoration: none;
  27. color: #000;
  28. }
  29. strong, b {
  30. font-weight: normal;
  31. }
  32. i, em {
  33. font-style: normal;
  34. }
  35. table {
  36. border-collapse: collapse;
  37. }
  38. th {
  39. font-weight: normal;
  40. text-align: left;
  41. vertical-align: top;
  42. }
  43. td {
  44. vertical-align: top;
  45. }
  46. input {
  47. margin: 0;
  48. padding: 0;
  49. border: none;
  50. font-family: inherit;
  51. outline: none;
  52. }
  53. textarea {
  54. resize: none;
  55. /* 禁止用户重置元素大小*/
  56. overflow: auto;
  57. font-family: inherit;
  58. }
  59. .wrap {
  60. width: 1100px;
  61. margin: 0 auto;
  62. }
  63. .clearfix::after {
  64. content: "";
  65. display: block;
  66. clear: both;
  67. }
  68. .clearfix {
  69. *zoom: 1;
  70. }