.search{ background-color: #f1f1f1; border-radius: 10rpx; width: 90%; margin: 0 auto; padding:6rpx 10rpx; } .search image{ width: 30rpx; height: 30rpx; margin-left: 10rpx; } .header{ background: #fff; padding: 28rpx; padding-bottom: 0rpx; position: sticky; top: 0; } .selectItems{ margin-top: 20rpx; } .selectItems .selectImg{ border-left: 1px solid #f1f1f1; padding: 0 20rpx; } .selectImg image{ width: 30rpx; height: 30rpx; } .selectItems .flex-1{ padding: 20rpx 0; text-align: center; 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 32rpx; } .main-right .name{ font-size: 32rpx; margin-bottom: 10rpx; } .main-right .context{ overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-top: 10rpx; margin-bottom: 10rpx; } .main-right .date{ color: #909399; } .main-right text{ color: #26A2FF; font-size: 28rpx; } .main-right text:nth-child(1){ margin-right: 20rpx; } .index{ border-radius: 6rpx; background:rgba(245, 108, 108, 0.1); color: #F56C6C; font-size: 20rpx; padding: 0 6rpx; } .scroll { height: calc(100vh - 225rpx); }