base.css 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*css reset*/
  2. /*清除内外边距*/
  3. body, h1, h2, h3, h4, h5, h6, p, hr, /*结构元素*/
  4. ul, ol, li, dl, dt, dd, /*列表元素*/
  5. form, fieldset, legend, input, button, select, textarea, /*表单元素*/
  6. th, td, /*表格元素*/
  7. pre {
  8. padding: 0;
  9. margin: 0;
  10. }
  11. /*重置默认样式*/
  12. body, button, input, select, textarea {
  13. /*font: 12px/1 微软雅黑, Tahoma, Helvetica, Arial, 宋体, sans-serif;*/
  14. color: #333;
  15. font: 12px/1 "Microsoft YaHei", Tahoma, Helvetica, Arial, SimSun, sans-serif;
  16. }
  17. h1, h2, h3, h4, h5, h6 {
  18. font-size: 100%;
  19. font-weight: normal;
  20. }
  21. em, i {
  22. font-style: normal;
  23. }
  24. a {
  25. text-decoration: none;
  26. }
  27. li {
  28. list-style-type: none;
  29. vertical-align: top;
  30. }
  31. img {
  32. border: none;
  33. /*display: block;*/
  34. vertical-align: top;
  35. }
  36. textarea {
  37. overflow: auto;
  38. resize: none;
  39. }
  40. table {
  41. border-spacing: 0;
  42. border-collapse: collapse;
  43. }
  44. /*常用公共样式*/
  45. .fl {
  46. float: left;
  47. display: inline;
  48. }
  49. .fr {
  50. float: right;
  51. display: inline;
  52. }
  53. .cf:before,
  54. .cf:after {
  55. content: " ";
  56. display: table;
  57. }
  58. .cf:after {
  59. clear: both;
  60. }
  61. .cf {
  62. *zoom: 1;
  63. }
  64. html{
  65. overflow-x: hidden;
  66. }