.header{ background: #fff; position: sticky; top: 0; } .selectItems{ /* margin-top: 20rpx; */ text-align: center; } .selectItems .selectImg{ border-left: 1px solid #f1f1f1; padding: 0 20rpx; } .selectImg image{ width: 30rpx; height: 30rpx; } .selectItems .flex-2{ padding: 24rpx 0; text-align: center; font-size: 32rpx; position: relative; } .selectItems .active::before{ position: absolute; content: " "; height: 4rpx; width: 100rpx; background: #26A2FF; bottom: 0rpx; left: 50%; margin-left: -50rpx; } .main{ background: #fff; } .li{ padding: 24rpx 28rpx; } .li2{ padding: 24rpx 28rpx; border-bottom: 20rpx solid rgba(245, 247, 250, 1); } .li2 image{ width: 30rpx; height: 30rpx; margin-right: 10rpx; } .main-right{ margin-left: 10rpx; } .main-right .name{ padding-top:12rpx; font-size: 36rpx; } .main-right .context{ overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; font-size: 32rpx; -webkit-box-orient: vertical; padding: 10rpx 0; } .main-right .date{ font-size: 24rpx; color: #909399; } .main-right text{ color: #26A2FF; font-size: 28rpx; } .index{ border-radius: 6rpx; background:rgba(245, 108, 108, 0.1); color: #F56C6C; font-size: 24rpx; padding: 0 6rpx; } .scroll { height: calc(100vh - 115rpx); } .sxImg{ width: 30rpx; height: 30rpx; }