Home >
Web Front-end >
CSS Tutorial >
Can Overflowing Text in Dropdown Boxes Be Truncated with an Ellipsis without JavaScript?
Can Overflowing Text in Dropdown Boxes Be Truncated with an Ellipsis without JavaScript?
Patricia Arquette
Release: 2024-12-01 21:55:11
Original
461 people have browsed it
Ellipsis for Overflowing Text in Dropdown Boxes
Q: Is there a non-JavaScript way to truncate overflowing text in dropdown boxes and append an ellipsis (...)?
A: Unfortunately, the text-overflow:ellipsis property does not work for
As of July 2020, Chrome supports text-overflow: ellipsis for
Options for Handling Overflowing Text:
Use a customizable replacement library: Libraries like Chosen provide customizable dropdown replacements that differ from the native select appearance.
File a bug report: If the current behavior is unsatisfactory, consider filing a bug report with major operating systems or browsers. This could potentially drive a change in the future.
The above is the detailed content of Can Overflowing Text in Dropdown Boxes Be Truncated with an Ellipsis without JavaScript?. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn