span{ display: block; width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } 注意:width一定要有