How can I mimic text-overflow: ellipsis in Firefox?

前端 未结 13 1208
抹茶落季
抹茶落季 2020-12-15 19:04

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

13条回答
  •  忘掉有多难
    2020-12-15 19:26

    Try this:

    Link One

    Update:

    If you use the proprietary {word-wrap: break-word;}, IE will force a line break. Modern browsers could have the default {overflow: visible;}, and they would overflow properly, without expanding the container.

提交回复
热议问题