tzxq.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .tzxqcontainer {
  2. position: relative;
  3. width: 100%;
  4. min-height: 100vh;
  5. display: flex;
  6. flex-direction: column;
  7. box-sizing: border-box;
  8. }
  9. /* 背景图片样式 */
  10. .header {
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. width: 100%;
  15. z-index: -1; /* 负值z-index确保在最底层 */
  16. }
  17. .background {
  18. width: 100%;
  19. height: auto;
  20. }
  21. .custom-nav {
  22. display: flex;
  23. align-items: center;
  24. height: 90rpx;
  25. margin-bottom: 20rpx;
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. z-index: 1000;
  31. padding: 0 20rpx;
  32. padding-top: 44px; /* 适配iPhone状态栏 */
  33. }
  34. .fixed-back {
  35. font-size: 40rpx;
  36. text-align: center;
  37. color: #fff;
  38. }
  39. .nav-title {
  40. flex: 1;
  41. text-align: center;
  42. font-size: 34rpx;
  43. color: #fff;
  44. }
  45. /* 滚动区域样式 */
  46. .notice-scroll-view {
  47. height: calc(100vh - 180rpx - 44px); /* 减去导航栏高度和状态栏高度 */
  48. width: 100%;
  49. position: relative;
  50. z-index: 1;
  51. margin-top: calc(90rpx + 44px);
  52. }
  53. /* 通知详情卡片容器样式 */
  54. .notice-detail-wrapper {
  55. padding: 30rpx;
  56. box-sizing: border-box;
  57. width: 100%;
  58. }
  59. /* 通知详情卡片样式 */
  60. .notice-detail {
  61. background-color: #fff;
  62. border-radius: 20rpx;
  63. padding: 40rpx 30rpx;
  64. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  65. width: 100%;
  66. box-sizing: border-box;
  67. }
  68. /* 通知标题样式 */
  69. .notice-title {
  70. font-size: 36rpx;
  71. font-weight: bold;
  72. text-align: center;
  73. margin-bottom: 30rpx;
  74. }
  75. /* 标题下方分隔线 */
  76. .title-divider {
  77. height: 2rpx;
  78. background-color: #eee;
  79. margin: 20rpx 0 30rpx;
  80. }
  81. /* 通知内容样式 */
  82. .notice-content {
  83. font-size: 28rpx;
  84. line-height: 1.8;
  85. color: #333;
  86. margin-bottom: 40rpx;
  87. }
  88. /* 通知底部落款样式 */
  89. .notice-footer {
  90. text-align: right;
  91. font-size: 26rpx;
  92. color: #666;
  93. margin-top: 30rpx;
  94. }
  95. .notice-signature {
  96. margin-bottom: 10rpx;
  97. }
  98. .notice-footer-date {
  99. color: #999;
  100. }
  101. /* 适配小屏设备 */
  102. @media screen and (max-width: 320px) {
  103. .notice-title {
  104. font-size: 36rpx;
  105. }
  106. .notice-content {
  107. font-size: 30rpx;
  108. }
  109. .notice-detail {
  110. padding: 30rpx 20rpx;
  111. }
  112. }
  113. /* 适配大屏设备 */
  114. @media screen and (min-width: 768px) {
  115. .notice-detail-wrapper {
  116. width: 90%;
  117. margin-left: auto;
  118. margin-right: auto;
  119. }
  120. }