I have a tag with many child nodes. I want the width of this dropdown to be minimal. However, there are times when the innerHTML of at least one parameter is very long, causing the drop-down list to expand its width.
What I plan to do is truncate long text and use ellipses to indicate that some characters have been truncated (the "very loooooong sentence" becomes "very loooooo .."). To show the full text, I am thinking of using a tooltip for the mouse over the event.
Unfortunately, the onmouseover event for each tag does not work. What can I do to achieve this effect?
thank
source
share