<style> .ellipsis{ text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } </style> 转载于:https://www.cnblogs.com/CyLee/p/6272753.html