page { .top { width: 100%; position: relative; .header { position: absolute; width: 100%; top: 0; } } .swiper { height: 600rpx; .slide-image { width: 100%; height: 98%; } } .rankingTitle { width: 100%; display: flex; justify-content: space-between; margin: 20rpx 0; font-weight: bold; .title {} .tabs { margin: 0; padding: 0; text { font-size: 25rpx; padding: 6rpx 28rpx; border-radius: 25rpx; margin: 0 10rpx; } .actvice { background: #B7D173; color: white; } } } .rankingContent { width: 100%; height: 250rpx; display: flex; justify-content: space-between; .rankingCard { background-repeat: no-repeat; border-radius: 15rpx; width: 32%; height: 100%; color: white; padding: 20rpx; view { overflow: hidden; //超出的文本隐藏 text-overflow: ellipsis; //溢出用省略号显示 white-space: nowrap; //溢出不换行 } .ranking { width: 40rpx; height: 40rpx; text-align: center; line-height: 40rpx; border-radius: 5rpx; font-size: 27.17rpx; font-weight: bold; } .title { font-size: 25rpx; font-weight: bold; } .content { font-size: 20rpx; } } } .tabs { display: flex; justify-content: space-between; margin-top: 20rpx; .tabIndex { font-weight: bold; border-bottom: #B7D173 4rpx solid; border-radius: 50%; padding: 5rpx 0; } } .card { width: 100%; display: flex; margin: 30rpx 0; justify-content: space-between; height: 250rpx; .image { width: 40%; height: 100%; // background: greenyellow; image { border-radius: 15rpx; width: 100%; height: 100%; } } .content { width: 58%; display: flex; flex-direction: column; justify-content: space-around; .title { font-weight: bold; overflow: hidden; //超出的文本隐藏 text-overflow: ellipsis; //溢出用省略号显示 white-space: nowrap; //溢出不换行 } .detail { font-size: 25rpx; color: gray; word-wrap: break-word; } .tabs { .score { font-size: 25rpx; color: gray; } text { font-size: 20rpx; padding: 5rpx 10rpx; border-radius: 20rpx; background: #e8f5c5; color: #B7D173; margin: 10rpx; } } .bottom { .prive { font-size: 30rpx; font-weight: bold; color: orange; } .range { font-size: 25rpx; color: gray; } } } } }