global.css 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* 定位 */
  2. .position-absolute{ position: absolute; }
  3. .position-fixed{ position: fixed; }
  4. .position-relative{ position: relative; }
  5. .left-0{ left: 0; }
  6. .top-0{ top: 0; }
  7. .bottom-0{ bottom: 0; }
  8. .right-0{ right: 0; }
  9. .z-1{ z-index:1; }
  10. .z-2{ z-index:2; }
  11. /* 文字排列 */
  12. .text-center{ text-align: center; }
  13. .text-left{ text-align: left; }
  14. .text-right{ text-align: right; }
  15. /* 字体颜色 */
  16. .color-white{ color:#fff; }
  17. /* flex布局 */
  18. .d-flex{ display: flex; }
  19. .d-block{ display: block; }
  20. .d-inline-block{ display: inline-block; }
  21. .flex-1{ flex: 1; }
  22. .flex-s{ flex-shrink: 0; }
  23. .flex-column{ flex-direction: column; }
  24. .flex-row{ flex-direction: row; }
  25. .flex-wrap{ flex-wrap: wrap; }
  26. .flex-nowrap{ flex-wrap: nowrap; }
  27. .flex-shrink{flex-shrink: 0;}
  28. .j-start{ justify-content: flex-start; }
  29. /* .j-center{ justify-content: center; } */
  30. .j-center{ justify-content: center; }
  31. .j-end{ justify-content: flex-end; }
  32. .j-sb{ justify-content: space-between; }
  33. .j-sa{ justify-content: space-around; }
  34. .a-center{ align-items:center; }
  35. .a-start{ align-items: flex-start; }
  36. .a-end{ align-items:flex-end; }
  37. .a-stretch{ align-items: stretch; }
  38. .a-c-start { align-content: flex-start; }
  39. .a-self-start{ align-self: flex-start; }
  40. .a-self-auto{ align-self: auto; }
  41. .a-self-end{ align-self: flex-end; }
  42. .a-self-stretch{ align-self:stretch; }
  43. .a-self-baseline{ align-self:baseline; }
  44. /* 宽度 */
  45. .w-100{ width:100% }
  46. .w-50{ width:50% }
  47. /* 边框 */
  48. .b-b-1 {border: 1px solid black; }
  49. /* 文字加粗 */
  50. .f-w{ font-weight: bold; }
  51. .f-w-900{ font-weight: 900; }
  52. /* 圆角 */
  53. .b-r-5{ border-radius: 5rpx;}
  54. /* 超出部分隐藏 */
  55. .over_style{
  56. overflow: hidden;/*超出部分隐藏*/
  57. text-overflow:ellipsis;/* 超出部分显示省略号 */
  58. white-space: nowrap;/*规定段落中的文本不进行换行 */
  59. }