调整
This commit is contained in:
@@ -55,4 +55,10 @@
|
||||
/* 确保p标签是块级,且换行正常 */
|
||||
display: block;
|
||||
word-wrap: break-word;
|
||||
white-space: nowrap;
|
||||
/* 2. 超出元素宽度的内容隐藏 */
|
||||
overflow: hidden;
|
||||
/* 3. 将超出的文本替换为省略号... */
|
||||
text-overflow: ellipsis;
|
||||
/* 可选:给元素设置一个固定宽度(确保省略效果生效) */
|
||||
}
|
||||
Reference in New Issue
Block a user