index.wxss 621 B

123456789101112131415161718192021222324252627282930
  1. .tab-bar {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. right: 0;
  6. background: white;
  7. display: flex;
  8. border-top: 1rpx solid rgba(0, 0, 0, 0.1);
  9. box-sizing: border-box;
  10. padding: 14rpx 0rpx;
  11. padding-bottom: env(safe-area-inset-bottom);
  12. box-shadow: rgba(0, 0, 0, 0.35) 0px 30rpx 20rpx 20rpx;
  13. }
  14. .tab-bar .tab-bar-item {
  15. flex: 1;
  16. text-align: center;
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. flex-direction: column;
  21. padding-bottom: 10rpx;
  22. }
  23. .tab-bar .tab-bar-item image {
  24. width: 48rpx;
  25. height: 48rpx;
  26. }
  27. .tab-bar .tab-bar-item view {
  28. font-size: 28rpx;
  29. margin-top: 10rpx;
  30. }