max-width: 79px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 对于手机端的页面,很多时候宽度是使用百分比,当文字过长时,需要进行省略时,可以加上max-width和display:block。 转载于:https://www.cnblogs.com/will-2008/p/4845949.html