index.wxss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* pages/zzdy/index.wxss */
  2. page {
  3. background: #f3f6fe;
  4. }
  5. /* 顶部背景图 */
  6. .top-bg {
  7. position: relative;
  8. z-index: -1;
  9. width: 100%;
  10. height: auto;
  11. }
  12. .top-bg > image {
  13. width: 100%;
  14. height: auto;
  15. }
  16. /* 功能区 */
  17. .content {
  18. margin-top: -200rpx;
  19. padding-top: 50rpx;
  20. width: 100%;
  21. border-radius: 60rpx 60rpx 0 0;
  22. background: #f3f6fe;
  23. }
  24. /* 底部选项卡 */
  25. .none {
  26. width: 100%;
  27. height: 40px;
  28. padding-top: 30rpx;
  29. padding-bottom: env(safe-area-inset-bottom);
  30. }
  31. .tabs {
  32. position: fixed;
  33. bottom: 0;
  34. left: 0;
  35. z-index: 999;
  36. background: #ffffff;
  37. width: 100%;
  38. height: 40px;
  39. display: flex;
  40. align-items: center;
  41. justify-content: space-around;
  42. padding-top: 30rpx;
  43. padding-bottom: env(safe-area-inset-bottom);
  44. }
  45. .tabs .tab {
  46. flex: 1;
  47. height: 80rpx;
  48. text-align: center;
  49. }
  50. .tabs .tab > view:nth-child(1) {
  51. margin: auto;
  52. width: 44rpx;
  53. height: 50rpx;
  54. overflow: hidden;
  55. }
  56. .tabs .tab > view:nth-child(1) > image {
  57. width: 100%;
  58. height: auto;
  59. }
  60. .tabs .tab > view:nth-child(2) {
  61. width: 100%;
  62. height: 30rpx;
  63. font-size: 24rpx;
  64. }