CSS word-wrap: break-word don't work on IE9

前端 未结 9 1768
清酒与你
清酒与你 2021-01-07 17:23
9条回答
  •  独厮守ぢ
    2021-01-07 18:26

    I recently was fighting this in Angular between IE/Edge & Chrome. Here is what I found worked for me

      overflow-wrap: break-word;
      word-wrap: break-word;
    

    This gave me the best of both. It would break the word that was too long, but unlike word-break it would not break mid-word.

提交回复
热议问题