// 显示省略号 .no-wrap() { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .flex-center(@direction: row) { display: flex; flex-direction: @direction; justify-content: center; align-items: center; }