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

前端 未结 13 1173
抹茶落季
抹茶落季 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:19

    No, it's not simple task. I had to do same thing year ago and found that even Internet Explorer (from version 6), Opera and Safari can do it, but no Firefox. So sorry, only hacks can save you

提交回复
热议问题