/* pages/main/index.wxss */ .attention-bg{ height: 40rpx; line-height: 40rpx; display: flex; background-color: rgba(0,0,0,0.10); font-size: 24rpx; border-radius: 4rpx; text-align: center; padding: 2rpx 8rpx 0rpx 8rpx; } .text-title{ font-size: 32rpx; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; white-space: normal !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .type-tags { background: #33333366; border-radius: 28rpx; padding: 4rpx 12rpx; font-size: 14rpx; position: absolute; bottom: 8rpx; right: 8rpx; color: var(--white); }