172 lines
3.0 KiB
SCSS
172 lines
3.0 KiB
SCSS
.app {
|
|
// height: 100vh;
|
|
background-color: #F7F5F5;
|
|
.Healthknowledge {
|
|
background: #fff;
|
|
width: 96%;
|
|
padding: 40rpx 50rpx 50rpx;
|
|
background-color: #fff;
|
|
// position: relative;
|
|
line-height: 46rpx;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
margin-top: -92rpx;
|
|
min-height:300rpx;
|
|
|
|
// transform: translateY(-16%);
|
|
.more {
|
|
position: absolute;
|
|
right: 20rpx;
|
|
top: 40rpx;
|
|
height: 46rpx;
|
|
width: 30%;
|
|
|
|
.title {
|
|
position: absolute;
|
|
right: 30rpx;
|
|
top: 50%;
|
|
text-align: right;
|
|
transform: translateY(-50%);
|
|
font-size: 26rpx;
|
|
font-family: Adobe Heiti Std;
|
|
font-weight: normal;
|
|
color: #969494;
|
|
}
|
|
|
|
image {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 15rpx;
|
|
height: 25rpx;
|
|
}
|
|
}
|
|
|
|
.lists {
|
|
width: 96%;
|
|
margin: 20rpx auto 0;
|
|
|
|
.item {
|
|
width: 100%;
|
|
height: 250rpx;
|
|
position: relative;
|
|
border-bottom: 2rpx solid #CDC9C9;
|
|
|
|
image {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.author {
|
|
position: absolute;
|
|
bottom: 20rpx;
|
|
left: 0;
|
|
font-size: 20rpx;
|
|
color: #969494;
|
|
}
|
|
|
|
.text {
|
|
position: absolute;
|
|
top: 20rpx;
|
|
left: 0;
|
|
width: 65%;
|
|
font-size: 30rpx;
|
|
text-overflow: -o-ellipsis-lastline;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 5; //行数需设置
|
|
line-clamp: 5;
|
|
-webkit-box-orient: vertical;
|
|
text-align: justify;
|
|
}
|
|
}
|
|
}
|
|
|
|
.title {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
.center{
|
|
width: 96%;
|
|
height: 700rpx;
|
|
background: #FFFFFF;
|
|
margin: 0 auto;
|
|
padding-top: 40rpx;
|
|
// padding: 40rpx 50rpx 50rpx;
|
|
margin-bottom: 30rpx;
|
|
transform: translateY(-12%);
|
|
.health {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
padding-left: 40rpx;
|
|
}
|
|
.contentcenter{
|
|
// width: 96%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
padding-top: 10rpx;
|
|
border-radius: 5rpx;
|
|
margin: 0 auto;
|
|
.home {
|
|
width: 32%;
|
|
// border: 1px solid #74AEF9;
|
|
height: 240rpx;
|
|
margin-top: 15rpx;
|
|
margin-bottom: 27rpx;
|
|
.name{
|
|
text-align: center;
|
|
margin: 14rpx 0 0 0;
|
|
// line-height: 120px;
|
|
}
|
|
|
|
image {
|
|
display: block;
|
|
margin: 30rpx auto;
|
|
width: 102rpx;
|
|
height: 102rpx;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.content {
|
|
position: relative;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 562rpx;
|
|
}
|
|
|
|
.address {
|
|
position: absolute;
|
|
top: 76%;
|
|
left: 7%;
|
|
image {
|
|
width: 25rpx;
|
|
height: 30rpx;
|
|
}
|
|
|
|
text {
|
|
font-size: 28rpx;
|
|
color: #595959;
|
|
padding-left: 15rpx;
|
|
|
|
margin-top: -6rpx;
|
|
width: 184rpx;
|
|
position: absolute;
|
|
}
|
|
}
|
|
}
|
|
}
|