index.wxss 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* 顶部要固定定位 标题要居中 自定义按钮和标题要和右边微信原生的胶囊上下对齐 */
  2. .nav-wrap {
  3. position: fixed;
  4. width: 100%;
  5. top: 0;
  6. background: #fff;
  7. color: #000;
  8. z-index: 9999999;
  9. /* background: transparent */
  10. }
  11. /* 标题要居中 */
  12. .nav-title {
  13. position: absolute;
  14. text-align: center;
  15. max-width: 330rpx;
  16. overflow: hidden;
  17. text-overflow: ellipsis;
  18. white-space: nowrap;
  19. top: 0;
  20. left: 0;
  21. right: 0;
  22. bottom: 0;
  23. margin: auto;
  24. font-size: 36rpx;
  25. color: #2c2b2b;
  26. font-weight: 600;
  27. }
  28. .nav-capsule {
  29. display: flex;
  30. align-items: center;
  31. margin-left: 30rpx;
  32. width: 140rpx;
  33. justify-content: space-between;
  34. height: 100%;
  35. }
  36. .back-pre {
  37. width: 40rpx;
  38. height: 40rpx;
  39. margin-top: 4rpx;
  40. padding: 10rpx;
  41. }
  42. .nav-capsule {
  43. display: flex;
  44. align-items: center;
  45. margin-left: 30rpx;
  46. width: 140rpx;
  47. justify-content: space-between;
  48. height: 100%;
  49. }