white-space: nowrap; 如有需要还可以设置word-break,word-wrap配合。 转载于:https://www.cnblogs.com/DarkMaster/p/6655822.html