1、要设置盒子宽度 2、text-overflow:ellipsis; 超出部分的文字内容以省略号的形式展示 3、white-space:nowrap; 文字不要换行 4、overflow:hidden; 溢出隐藏