index.wxss 738 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* custom-tab-bar/index.js.wxss */
  2. .tab-bar {
  3. position: fixed;
  4. bottom: 0;
  5. left: 0;
  6. right: 0;
  7. height: 112rpx;
  8. background-color: rgb(255, 255, 255);
  9. display: flex;
  10. width: 750rpx;
  11. z-index: 10000;
  12. padding-bottom: env(safe-area-inset-bottom);
  13. }
  14. .tab-bar-item {
  15. width: 187.5rpx;
  16. height: 112rpx;
  17. text-align: center;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. flex-direction: column;
  22. }
  23. .tab-bar-item>image:nth-child(1){
  24. width: 48rpx;
  25. height: 48rpx;
  26. }
  27. .tab-bar-item>view:nth-child(2){
  28. margin-top: 8rpx;
  29. width: 250rpx;
  30. height: 28rpx;
  31. font-size: 20rpx;
  32. font-weight: 500;
  33. color: rgba(0, 0, 0, 0.87);
  34. line-height: 28rpx;
  35. text-align: center;
  36. }