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

前端 未结 3 822
醉酒成梦
醉酒成梦 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条回答
  •  旧时难觅i
    2021-02-07 02:58

    #grid2{
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    

    This should work for IE11, but not for IE9

提交回复
热议问题