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

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

    Some way to set the style of the line divs so that they don't wrap text?

    There you have the white-space: nowrap for. Yes, this works in ancient browsers as well.

提交回复
热议问题