选择器 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100px; }
white-space 属性设置如何处理元素内的空白。
white-space:nowrap;规定段落中的文本不进行换行: