1. 文字不允许换行(单行文本) white-space: nowrap; 2.溢出部分隐藏 overflow: hidden; 3.文本溢出后,使用 ... 代替 text-overflow: ellipsis;