.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 转载于:https://www.cnblogs.com/panyujun/p/10308008.html