不换行自动省略文字,以"…"代替。 overflow: hidden; (溢出剪切) text-overflow: ellipsis;(显示省略符号来代表被修剪的文本。) white-space: nowrap;(不换行)