Using css to automatically intercept text does not require background programs and JS. The benefits of using it are: compatible with IE, firefox, Opera; good for content integrity; good for SEO; no need for background program processing; the length to be intercepted can be adjusted at any time in the foreground .
Disadvantages: The interception length cannot be automatically determined. When the characters are very short, subsequent ellipses will be generated in Firefox.
In addition, when setting the interception width, pay attention to try to make the text interception complete.