I made an image for this question to make it easier to understand.
Is it possible to create an ellipsis on a with a fixed width and multiple 相关标签:
with a fixed width and multiple 相关标签:
Here I made another library with faster algorithm. Please check:
https://github.com/i-ahmed-biz/fast-ellipsis
To install using bower:
bower install fast-ellipsis
To install using npm:
npm install fast-ellipsis
Hope you enjoy!