common.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*css 初始化 */
  2. html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img {
  3. margin: 0;
  4. padding: 0;
  5. }
  6. /*将标签原有的默认内外边距去掉*/
  7. fieldset, img, input, button {
  8. border: none; /*去掉边框*/
  9. padding: 0;
  10. margin: 0;
  11. outline-style: none; /*去掉环绕边框*/
  12. }
  13. ul, ol {
  14. list-style: none; /*去掉原样式中的小黑点*/
  15. /*ctrl+alt+l*/
  16. }
  17. input {
  18. padding-top: 0;
  19. padding-bottom: 0;
  20. }
  21. select, input {
  22. vertical-align: middle; /*输入字居中显示*/
  23. }
  24. select, input, textarea {
  25. font-size: 14px;
  26. margin: 0;
  27. }
  28. /**/
  29. textarea {
  30. resize: none; /*防止拖动*/
  31. }
  32. img {
  33. border: 0;
  34. vertical-align: middle; /* 去掉图片底部默认的3像素空白缝隙*/
  35. }
  36. table {
  37. border-collapse: collapse; /*合并外边线*/
  38. }
  39. body {
  40. font-family: Microsoft YaHei, Arial, "\5b8b\4f53";
  41. }
  42. .clearfix:before, .clearfix:after {
  43. content: "";
  44. display: table;
  45. }
  46. .clearfix:after {
  47. clear: both;
  48. }
  49. .clearfix {
  50. *zoom: 1; /*IE/7/6*/
  51. /*兼容IE6下的写法*/
  52. }
  53. h1, h2, h3, h4, h5, h6 {
  54. text-decoration: none; /**/
  55. font-weight: normal; /*不加粗*/
  56. font-size: 100%;
  57. }
  58. a{
  59. text-decoration: none;
  60. }
  61. s, i, em {
  62. /*一般起装饰作用*/
  63. font-style: normal; /*将字体变成正常字体*/
  64. text-decoration: none; /*去掉中划线*/
  65. }
  66. .fl{
  67. float: left;
  68. }
  69. .fr{
  70. float: right;
  71. }