How can I mimic text-overflow: ellipsis in Firefox?
问题 I have some dynamic text contained in a div that is set to whatever a user enters in a textbox field. If the text doesn't fit in the div, right now it just gets cut off at the edge and all the text that extends past the border is not visible. I would like to truncate the text so that it fits inside the box and has an ellipsis (...) appended on the end. For example: |----div width------| Here is some sample text that is too long. Here is some sam... Obviously in the example it's easy because