【新增】单行字体省略
This commit is contained in:
@@ -115,3 +115,10 @@ body {
|
|||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
color: #adb5bd;
|
color: #adb5bd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ellipsis-single {
|
||||||
|
white-space: nowrap; /* 禁止换行 */
|
||||||
|
overflow: hidden; /* 隐藏超出部分 */
|
||||||
|
text-overflow: ellipsis; /* 显示省略号 */
|
||||||
|
max-width: 200px; /* 自定义最大宽度(根据需求调整,如 150px/300px) */
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user