今天写遇到纯英文内容用文本溢出的代码并不管用,所以查了一下通用版本如下:
overflow:hidden;white-space:normal; word-break:break-all;text-overflow:ellipsis;