index.wxss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .tab-bar {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. right: 0;
  6. height: 78px;
  7. background: white;
  8. display: flex;
  9. padding-bottom: env(safe-area-inset-bottom);
  10. }
  11. .tab-bar-border {
  12. background-color: rgba(0, 0, 0, 0.33);
  13. position: absolute;
  14. left: 0;
  15. top: 0;
  16. width: 100%;
  17. height: 1px;
  18. transform: scaleY(0.5);
  19. }
  20. .tab-bar-item {
  21. position: relative;
  22. flex: 1;
  23. text-align: center;
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. flex-direction: column;
  28. }
  29. .tab-bar-item-center{
  30. flex: 1.5;
  31. }
  32. .tab-bar-item-center-border{
  33. position: absolute;
  34. top: -16px;
  35. width: 84px;
  36. height: 74px;
  37. border-radius: 43px 43px 43px 43px;
  38. box-shadow: 0px -4px 4px 0px rgba(0,0,0,0.25);
  39. background: #fff;
  40. padding-top: 10px;
  41. }
  42. .tab-bar-item-text{
  43. position: absolute;
  44. top: 58px;
  45. }
  46. .tab-bar-item image {
  47. width: 48px;
  48. height: 48px;
  49. }
  50. .tab-bar-item view {
  51. font-size: 10px;
  52. }
  53. /* 中间特殊按钮样式 */
  54. .tab-bar-item-center image {
  55. width: 54px;
  56. height: 54px;
  57. }
  58. .tab-bar-item-center view {
  59. font-size: 10px;
  60. }