xinelu-nurse-app/pages/Learningtraining/Learningtraining.scss
2023-09-19 15:05:27 +08:00

71 lines
1.4 KiB
SCSS

.app {
color: #333333;
padding: 0 0 100rpx;
.card {
width: 96%;
margin: 25rpx auto;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
.item {
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 5rpx;
width: 100%;
height: 600rpx;
position: relative;
margin-bottom: 15rpx;
background: #FFFFFF;
image {
position: absolute;
top: 20rpx;
transform: translateX(-50%);
left: 50%;
border-radius: 5rpx;
width: 94%;
height: 400rpx;
}
.text {
width: 70%;
font-size: 28rpx;
font-weight: 400;
color: #666666;
position: absolute;
bottom: 30rpx;
left: 30rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2; //行数需设置
line-clamp: 2;
-webkit-box-orient: vertical;
}
.price {
position: absolute;
bottom: 30rpx;
right: 40rpx;
color: #EA706A;
font-size: 31rpx;
font-weight: 500;
}
.title {
font-size: 38rpx;
font-weight: 500;
position: absolute;
top: 440rpx;
left: 30rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1; //行数需设置
line-clamp: 1;
-webkit-box-orient: vertical;
}
}
}
}