困扰自己很就, 也查了很多资料,原因是因为 scroll 高度没给准确 导致page 会带着scroll滚动
background: linear-gradient(0deg, rgba(255, 255, 255, .3), $themeColor);
border: 1rpx solid transparent;
display: flex;
flex-direction: column;
height: 100%;
.scroll-view{
flex: 1;
background-color: red;
height: 1px;
}
/* 单行超出隐藏 */
.using-hidden {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 多行超出隐藏 */
.multi-hidden {
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}