溢出隐藏

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

@@ -223,6 +223,9 @@ export default {
.phe_context {
.phe_context_title {
overflow:hidden; //超出的文本隐藏
text-overflow:ellipsis; //溢出用省略号显示
white-space:nowrap; //溢出不换行
cursor: pointer;
font-size: 2rem;
font-weight: 600;
@@ -239,6 +242,9 @@ export default {
font-size: 1.6rem;
color: #565656;
letter-spacing: 1px;
display:-webkit-box; //作为弹性伸缩盒子模型显示。
-webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列
-webkit-line-clamp:3; //显示的行
}
}