tzxq.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. .back-icon {
  35. position: fixed;
  36. top: 130rpx;
  37. left: 30rpx;
  38. z-index: 999;
  39. width: 40rpx;
  40. height: 40rpx;
  41. }
  42. .nav-title {
  43. flex: 1;
  44. text-align: center;
  45. font-size: 34rpx;
  46. color: #fff;
  47. }
  48. /* 滚动区域样式 */
  49. .notice-scroll-view {
  50. height: calc(100vh - 180rpx - 44px); /* 减去导航栏高度和状态栏高度 */
  51. width: 100%;
  52. position: relative;
  53. z-index: 1;
  54. margin-top: calc(90rpx + 44px);
  55. }
  56. /* 通知详情卡片容器样式 */
  57. .notice-detail-wrapper {
  58. padding: 30rpx;
  59. box-sizing: border-box;
  60. width: 100%;
  61. }
  62. /* 通知详情卡片样式 */
  63. .notice-detail {
  64. background-color: #fff;
  65. border-radius: 20rpx;
  66. padding: 40rpx 30rpx;
  67. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  68. width: 100%;
  69. box-sizing: border-box;
  70. }
  71. /* 通知标题样式 */
  72. .notice-title {
  73. font-size: 36rpx;
  74. font-weight: bold;
  75. text-align: center;
  76. margin-bottom: 30rpx;
  77. }
  78. /* 标题下方分隔线 */
  79. .title-divider {
  80. height: 2rpx;
  81. background-color: #eee;
  82. margin: 20rpx 0 30rpx;
  83. }
  84. /* 通知内容样式 */
  85. .notice-content {
  86. font-size: 28rpx;
  87. line-height: 1.8;
  88. color: #333;
  89. margin-bottom: 40rpx;
  90. overflow-x: hidden;
  91. }
  92. /* rich-text内容样式控制 */
  93. .notice-content rich-text {
  94. width: 100%;
  95. overflow-x: hidden;
  96. }
  97. .notice-content rich-text .rich-content {
  98. width: 100%;
  99. box-sizing: border-box;
  100. }
  101. /* 控制rich-text中的图片大小 */
  102. .notice-content rich-text image {
  103. max-width: 100% !important;
  104. height: auto !important;
  105. }
  106. /* 控制rich-text中的文本样式 */
  107. .notice-content rich-text p,
  108. .notice-content rich-text div,
  109. .notice-content rich-text span {
  110. max-width: 100% !important;
  111. box-sizing: border-box;
  112. word-wrap: break-word;
  113. margin: inherit;
  114. padding: inherit;
  115. }
  116. /* 通知底部落款样式 */
  117. .notice-footer {
  118. text-align: right;
  119. font-size: 26rpx;
  120. color: #666;
  121. margin-top: 30rpx;
  122. }
  123. .notice-signature {
  124. margin-bottom: 10rpx;
  125. }
  126. .notice-footer-date {
  127. color: #999;
  128. }
  129. /* 适配小屏设备 */
  130. @media screen and (max-width: 320px) {
  131. .notice-title {
  132. font-size: 36rpx;
  133. }
  134. .notice-content {
  135. font-size: 30rpx;
  136. }
  137. .notice-detail {
  138. padding: 30rpx 20rpx;
  139. }
  140. }
  141. /* 适配大屏设备 */
  142. @media screen and (min-width: 768px) {
  143. .notice-detail-wrapper {
  144. width: 90%;
  145. margin-left: auto;
  146. margin-right: auto;
  147. }
  148. }