update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user