css如下: width: **px; // text-overflow: ellipsis; overflow: hidden; white-space: nowrap; 转载于:https://www.cnblogs.com/sandy-happyhour/p/5484564.html