_base.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @charset "UTF-8";
  2. body {
  3. line-height: 1;
  4. min-width: 1300px;//hiyd头部所占的宽度
  5. }
  6. html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {
  7. margin: 0;
  8. padding: 0;
  9. border: 0;
  10. font-size: 100%;
  11. font-weight: normal;
  12. vertical-align: baseline;
  13. }
  14. blockquote, q {
  15. quotes: none;
  16. }
  17. blockquote:before,
  18. blockquote:after,
  19. q:before,
  20. q:after {
  21. content: '';
  22. content: none;
  23. }
  24. del {text-decoration: line-through;}
  25. img {
  26. height: auto;
  27. vertical-align: middle;
  28. -ms-interpolation-mode: bicubic;/* scale images in IE7 more attractively */
  29. }
  30. i, em {
  31. font-style: normal;
  32. }
  33. ol, ul, menu {
  34. list-style: none outside none;
  35. }
  36. fieldset,iframe,abbr,acronym {
  37. border: 0 none;
  38. }
  39. iframe {
  40. display: block;
  41. }
  42. textarea {
  43. resize: vertical;
  44. }
  45. table {
  46. border-collapse: collapse;
  47. border-spacing: 0;
  48. font-size: inherit;
  49. }
  50. // IE bug fixed: th 不继承 text-align
  51. th {
  52. text-align: inherit;
  53. }
  54. // 修正表单元素并不继承父级 font 的问题
  55. button, input, select, textarea {
  56. font-family: Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
  57. margin: 0;
  58. }
  59. %clearfix{
  60. *zoom: 1;
  61. &:before,
  62. &:after{
  63. content: "";
  64. display: table;
  65. line-height: 0;
  66. }
  67. &:after{
  68. clear: both;
  69. }
  70. }
  71. // 清除浮动
  72. .clearfix {
  73. @extend %clearfix;
  74. }