white-space: nowrap;overflow:hidden;text-overflow:ellipsis;效果如下: 转载于:https://www.cnblogs.com/programfield/p/10734114.html