1.单行省略 div { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } 多行省略 转载于:https://juejin.im/post/5c70bc586fb9a049ea39917c