How to mimic word-break: break-word; for IE9, IE11 and Firefox

前端 未结 3 781
醉酒成梦
醉酒成梦 2021-02-07 02:27

How to mimic word-break: break-word; for IE9, IE11 and Firefox?

It seems to work in Chrome. I have learnt and understood that it is a is non-standard, webki

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 02:57

    Use display:table-caption to achieve what you are looking for.

    LIVE DEMO

    The HTML:

    Product Support

    The CSS:

    #theSpan{
      display:table-caption;
    }
    

    Hope this helps.

提交回复
热议问题