my-reset.css 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. * {
  2. /* 阻止safari在用户交互设置一些元素的背景色 */
  3. -webkit-tap-highlight-color: transparent;
  4. box-sizing: border-box;
  5. }
  6. html {
  7. overflow: hidden;
  8. touch-action: none;
  9. scroll-behavior: smooth; /* MDN: When this property is specified on the root element, it applies to the viewport instead. This property specified on the body element will not propagate to the viewport.(???) */
  10. height: 100%;
  11. }
  12. body {
  13. text-align: justify;
  14. height: 100%;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. }
  18. a {
  19. color: initial;
  20. text-decoration: initial;
  21. outline: none;
  22. }
  23. button {
  24. padding: 0;
  25. cursor: pointer;
  26. background-color: initial;
  27. border: initial;
  28. outline: none;
  29. white-space: pre;
  30. }
  31. img {
  32. user-select: none;
  33. }
  34. menu {
  35. list-style-type: initial;
  36. }
  37. li {
  38. display: initial;
  39. }
  40. input {
  41. outline: initial;
  42. background: initial;
  43. border: initial;
  44. border-radius: initial;
  45. width: initial;
  46. height: initial;
  47. }
  48. td {
  49. vertical-align: inherit;
  50. }