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

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

    I changed this.value=strings.join('') to this.value=strings.join(' ') from Binyamin's reply, and it worked for me fine!

提交回复
热议问题