溢出隐藏

This commit is contained in:
clay
2022-01-03 19:02:14 +08:00
parent c6f6f55069
commit ba8e6c1601
8 changed files with 52 additions and 28 deletions

View File

@@ -187,6 +187,9 @@ export default {
margin: 1rem auto;
width: 80%;
height: 4rem;
display:-webkit-box; //作为弹性伸缩盒子模型显示。
-webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列
-webkit-line-clamp:3; //显示的行
}
}
}