-
单行
-
overflow: hidden; /* 溢出隐藏 */ text-overflow:ellipsis; /* 省略号代替 */ white-space: nowrap; /* 不换行 */
-
多行
- https://blog.csdn.net/qq_45062261/article/details/100774685
overflow: hidden; /* 溢出隐藏 */
text-overflow:ellipsis; /* 省略号代替 */
white-space: nowrap; /* 不换行 */