This commit is contained in:
2025-03-28 15:34:00 +08:00
parent c689574b2c
commit 156209f020
13 changed files with 339 additions and 8 deletions

View File

@@ -28,11 +28,12 @@ $primary-color: #2D5CF6;
}
.ellipsis-1 {
display: -webkit-box; /* 创建一个伸缩容器 */
display: inline-block; /* 创建一个伸缩容器 */
-webkit-box-orient: vertical; /* 设置伸缩容器的方向为垂直 */
-webkit-line-clamp: 1; /* 限制显示的行数为2行 */
overflow: hidden; /* 超出内容隐藏 */
text-overflow: ellipsis; /* 超出部分显示省略号 */
white-space: nowrap;
}
.ellipsis-2 {
@@ -42,3 +43,7 @@ $primary-color: #2D5CF6;
overflow: hidden; /* 超出内容隐藏 */
text-overflow: ellipsis; /* 超出部分显示省略号 */
}
.nowrap {
white-space: nowrap;
}