index.wxss 602 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* custom-tab-bar/index.wxss */
  2. .tab-bar {
  3. position: fixed;
  4. bottom: 0;
  5. left: 0;
  6. right: 0;
  7. z-index: 100;
  8. height: 110rpx;
  9. background: white;
  10. display: flex;
  11. padding-bottom: env(safe-area-inset-bottom);
  12. }
  13. .tab-bar-border {
  14. background-color: rgba(0, 0, 0, 0.33);
  15. position: absolute;
  16. left: 0;
  17. top: 0;
  18. width: 100%;
  19. height: 1rpx;
  20. transform: scaleY(0.5);
  21. }
  22. .tab-bar-item {
  23. flex: 1;
  24. text-align: center;
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. flex-direction: column;
  29. }
  30. .tab-bar-item image {
  31. width: 96rpx;
  32. height: 68rpx;
  33. }
  34. .tab-bar-item view {
  35. font-size: 20rpx;
  36. }