123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- .tzxqcontainer {
- position: relative;
- width: 100%;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- }
- /* 背景图片样式 */
- .header {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- z-index: -1; /* 负值z-index确保在最底层 */
- }
- .background {
- width: 100%;
- height: auto;
- }
- .custom-nav {
- display: flex;
- align-items: center;
- height: 90rpx;
- margin-bottom: 20rpx;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- z-index: 1000;
- padding: 0 20rpx;
- padding-top: 44px; /* 适配iPhone状态栏 */
- }
- .back-icon {
- position: fixed;
- top: 130rpx;
- left: 30rpx;
- z-index: 999;
- width: 40rpx;
- height: 40rpx;
- }
- .nav-title {
- flex: 1;
- text-align: center;
- font-size: 34rpx;
- color: #fff;
- }
- /* 滚动区域样式 */
- .notice-scroll-view {
- height: calc(100vh - 180rpx - 44px); /* 减去导航栏高度和状态栏高度 */
- width: 100%;
- position: relative;
- z-index: 1;
- margin-top: calc(90rpx + 44px);
- }
- /* 通知详情卡片容器样式 */
- .notice-detail-wrapper {
- padding: 30rpx;
- box-sizing: border-box;
- width: 100%;
- }
- /* 通知详情卡片样式 */
- .notice-detail {
- background-color: #fff;
- border-radius: 20rpx;
- padding: 40rpx 30rpx;
- box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
- width: 100%;
- box-sizing: border-box;
- }
- /* 通知标题样式 */
- .notice-title {
- font-size: 36rpx;
- font-weight: bold;
- text-align: center;
- margin-bottom: 30rpx;
- }
- /* 标题下方分隔线 */
- .title-divider {
- height: 2rpx;
- background-color: #eee;
- margin: 20rpx 0 30rpx;
- }
- /* 通知内容样式 */
- .notice-content {
- font-size: 28rpx;
- line-height: 1.8;
- color: #333;
- margin-bottom: 40rpx;
- overflow-x: hidden;
- }
- /* rich-text内容样式控制 */
- .notice-content rich-text {
- width: 100%;
- overflow-x: hidden;
- }
- .notice-content rich-text .rich-content {
- width: 100%;
- box-sizing: border-box;
- }
- /* 控制rich-text中的图片大小 */
- .notice-content rich-text image {
- max-width: 100% !important;
- height: auto !important;
- }
- /* 控制rich-text中的文本样式 */
- .notice-content rich-text p,
- .notice-content rich-text div,
- .notice-content rich-text span {
- max-width: 100% !important;
- box-sizing: border-box;
- word-wrap: break-word;
- margin: inherit;
- padding: inherit;
- }
- /* 通知底部落款样式 */
- .notice-footer {
- text-align: right;
- font-size: 26rpx;
- color: #666;
- margin-top: 30rpx;
- }
- .notice-signature {
- margin-bottom: 10rpx;
- }
- .notice-footer-date {
- color: #999;
- }
- /* 适配小屏设备 */
- @media screen and (max-width: 320px) {
- .notice-title {
- font-size: 36rpx;
- }
-
- .notice-content {
- font-size: 30rpx;
- }
-
- .notice-detail {
- padding: 30rpx 20rpx;
- }
- }
- /* 适配大屏设备 */
- @media screen and (min-width: 768px) {
- .notice-detail-wrapper {
- width: 90%;
- margin-left: auto;
- margin-right: auto;
- }
- }
|