bt-lcyd/pages/exerciseNews/exerciseNews.wxss

64 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-06-14 10:56:41 +08:00
.swiper-box, swiper, .swiper-item, .swiper-item image{
width: 100%;
height: 400rpx;
}
.tab{
width: 100%;
overflow-x: auto;
padding: 0 30rpx;
box-sizing: border-box;
margin: 30rpx 0;
white-space: nowrap
}
.tab-btn{
display: inline-block;
width: 21%;
height: 60rpx;
line-height: 60rpx;
text-align: center;
background:rgba(203,203,203,.2);
margin-right: 20rpx;
border-radius: 35rpx;
font-size: 28rpx;
color: #5e5e5e;
}
.tab-btn.active{
background: #4B7AFE;
color: #fff;
}
.news-list{
padding: 0 30rpx;
}
.news-box{
padding: 10rpx;
border: 1px solid #ddd;
display: flex;
justify-content: space-between;
border-radius: 10rpx;
margin-bottom: 10rpx;
}
.news-image{
width: 35%;
height: 180rpx;
}
.news-image image{
width: 100%;
height: 100%;
}
.news-info{
width: 63%;
}
.news-title{
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: 34rpx;
color: #000;
}
.news-text{
color: #888;
font-size: 28rpx;
margin-top: 12rpx;
}