reset.css 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td,select { margin:0; padding:0; }
  2. body, button, input, select, textarea {font-size:.24rem; line-height: 1; }
  3. h1, h2, h3, h4, h5, h6{ font-size:100%; }
  4. address, cite, dfn, em, var { font-style:normal; }
  5. code, kbd, pre, samp { font-family:couriernew, courier, monospace; }
  6. small{ font-size:12px; }
  7. ul, ol { list-style:none; }
  8. sup { vertical-align:text-top; }
  9. sub{ vertical-align:text-bottom; }
  10. legend { color:#000; }
  11. fieldset, img { border:0; }
  12. button, input, select, textarea { font-size:100%; }
  13. table { border-collapse:collapse; border-spacing:0; }
  14. /* HTML5 display-role reset for older browsers */
  15. article, aside, details, figcaption, figure,
  16. footer, header, menu, nav, section { display: block; }
  17. input,input[type="search"],button,select,option,textarea,a{ outline:none; border:0; -webkit-appearance:none;border-radius: 0; background:none;-webkit-box-sizing:border-box;box-sizing:border-box;}
  18. /* custom */
  19. a { text-decoration: none; -webkit-backface-visibility: hidden; color:#333; }
  20. body { -webkit-text-size-adjust: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: 'PingFang SC', 'STHeitiSC-Light', 'Helvetica-Light', arial, sans-serif, 'Droid Sans Fallback'; color:#333;}
  21. div,section,header{-webkit-box-sizing:border-box; box-sizing:border-box;}
  22. input{line-height: normal;}
  23. .fl{ float:left; }
  24. .fr{ float:right; }
  25. .clear{ clear:both; height: 0; line-height: 0; font-size: 0; }
  26. .clearfix:after{ content:"."; display:block; height:0; visibility:hidden; clear:both; overflow: hidden; }
  27. .flex {
  28. display: -webkit-box;
  29. display: -moz-box;
  30. display: -webkit-flex;
  31. display: -ms-flexbox;
  32. display: box;
  33. display: flex;
  34. }
  35. .con-cell{ display: table-cell; height: 100%; vertical-align: middle; }
  36. .old-price{text-decoration: line-through;}
  37. [v-cloak] {
  38. display: none;
  39. }
  40. /* 一像素边框 */
  41. @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
  42. .border-1px::after {
  43. -webkit-transform: scaleY(0.7);
  44. -moz-transform: scaleY(0.7);
  45. -o-transform: scaleY(0.7);
  46. -ms-transform: scaleY(0.7);
  47. transform: scaleY(0.7);
  48. }
  49. .border-1px::before {
  50. -webkit-transform: scaleY(0.7);
  51. -moz-transform: scaleY(0.7);
  52. -o-transform: scaleY(0.7);
  53. -ms-transform: scaleY(0.7);
  54. transform: scaleY(0.7);
  55. }
  56. }
  57. @media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
  58. .border-1px::after {
  59. -webkit-transform: scaleY(0.5);
  60. -moz-transform: scaleY(0.5);
  61. -o-transform: scaleY(0.5);
  62. -ms-transform: scaleY(0.5);
  63. transform: scaleY(0.5);
  64. }
  65. .border-1px::before {
  66. -webkit-transform: scaleY(0.5);
  67. -moz-transform: scaleY(0.5);
  68. -o-transform: scaleY(0.5);
  69. -ms-transform: scaleY(0.5);
  70. transform: scaleY(0.5);
  71. }
  72. }
  73. @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  74. .border-1px::after {
  75. -webkit-transform: scaleY(0.33);
  76. -moz-transform: scaleY(0.33);
  77. -o-transform: scaleY(0.33);
  78. -ms-transform: scaleY(0.33);
  79. transform: scaleY(0.33);
  80. }
  81. .border-1px::before {
  82. -webkit-transform: scaleY(0.33);
  83. -moz-transform: scaleY(0.33);
  84. -o-transform: scaleY(0.33);
  85. -ms-transform: scaleY(0.33);
  86. transform: scaleY(0.33);
  87. }
  88. }