/**index.wxss**/ .news-list { display: flex; flex-direction: column; } .news-item { height: 100rpx; /*width属性解决标题文字太短而导航缩略偏移*/ width: 100%; } .news-box { background-color: transparent; height: 100rpx; display: flex; flex-direction: row; box-sizing: border-box; border-bottom: 1px solid #f2f2f2; margin-left: 40rpx; margin-right: 40rpx; align-items: flex-start; } .news-text { background-color: transparent; height: 96rpx; width: 100%; display: flex; flex-direction: column; padding-left: 20rpx; overflow: hidden; align-items: flex-start; } .news-stamp { height: 60rpx; font-size: 20rpx; color: darkgrey; text-overflow: ellipsis; overflow: hidden; } .news-title { height: 36rpx; color: gray; font-size: 26rpx; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .container { display: flex; flex-direction: column; align-items: center; } .list-image { width: 90rpx; height: 90rpx; margin-left: 10rpx; margin-top: 6rpx; } .top-image { width: 100%; background-color: #f2f2f2; text-align: center; } .swiper-image { width: 100%; } .icon-image { width: 60rpx; height: 60rpx; } .imagetext { display: flex; flex-direction: row; justify-content: space-around; background-color: #f2f2f2; height: 80rpx; align-items: center; } .newsNormal { height: 40rpx; display: flex; align-items: flex-end; border-bottom: 2px transparent solid; color: black; } .newsSelected { border-bottom: 2px orchid solid; height: 40rpx; display: flex; align-items: flex-end; color: #21ac00; } .tabText { text-align: center; font-size: 30rpx; }