1.把超出的文字先隐藏 overflow:hidden; 2.必须设置让文字一行显示 white-space: nowrap; //强制不换行 3.溢出的文字用省略号代替 text-overflow: ellipsis;