.nowrap1{
overflow: hidden;
-o-text-overflow:ellipsis;
text-overflow:ellipsis;
white-space: nowrap;
}
.nowrap2{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
text:nth-child(2).discount {
color:rgba(255,87,87,1);
}
-webkit-border-radius: 0 0 100% 100% / 0 0 10% 10%;
border-radius: 0 0 100% 100% / 0 0 10% 10%;
flex-direction:column;
flex
margin-left:auto;
- 弹性布局,最后一个元素居右(设置倒数第二个元素flex:1,占满剩余空间)
- 居中
position: absolute;
bottom: 80upx;
left: 0;
right: 0;
margin: auto;
- div的高度与span高度不同 (div设置font-size为0)
- 段落缩进两个字
text-indent: 2em;
.tips {
position: absolute;
top: -38upx;
left: 85upx;
border:2upx solid rgba(255,87,87,1);
color:rgba(255,87,87,1);
font-size:22upx;
padding: 7upx 11upx;
border-radius: 100upx;
background:
}
.header{ position: relative; padding: 33upx 0 23upx 30upx; // height: 85upx; font-size:30upx; font-weight:bold; color:rgba(51,51,51,1); line-height: 1; } .header::after{ position: absolute; content: ''; left: 30upx; right: 0; bottom: 0; height:1upx; background:rgba(239,239,239,1); }