CSS一行显示,显示不下的用省略号显示
.abc{ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
复制上面代码即可。