scroll-view.wxss 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .page-section-spacing{
  2. margin-top: 30px;
  3. }
  4. .scroll-view_H{
  5. white-space: nowrap;
  6. }
  7. .scroll-view-item{
  8. height: 150px;
  9. }
  10. .scroll-view-item_H{
  11. display: inline-block;
  12. width: 100%;
  13. height: 150px;
  14. }
  15. .demo-text-1{
  16. position: relative;
  17. align-items: center;
  18. justify-content: center;
  19. background-color: #1AAD19;
  20. color: #FFFFFF;
  21. font-size: 18px;
  22. }
  23. .demo-text-1:before{
  24. content: 'A';
  25. position: absolute;
  26. top: 50%;
  27. left: 50%;
  28. transform: translate(-50%, -50%);
  29. }
  30. .demo-text-2{
  31. position: relative;
  32. align-items: center;
  33. justify-content: center;
  34. background-color: #2782D7;
  35. color: #FFFFFF;
  36. font-size: 18px;
  37. }
  38. .demo-text-2:before{
  39. content: 'B';
  40. position: absolute;
  41. top: 50%;
  42. left: 50%;
  43. transform: translate(-50%, -50%);
  44. }
  45. .demo-text-3{
  46. position: relative;
  47. align-items: center;
  48. justify-content: center;
  49. background-color: #F1F1F1;
  50. color: #353535;
  51. font-size: 18px;
  52. }
  53. .demo-text-3:before{
  54. content: 'C';
  55. position: absolute;
  56. top: 50%;
  57. left: 50%;
  58. transform: translate(-50%, -50%);
  59. }