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

前端 未结 9 1627
清酒与你
清酒与你 2021-01-07 17:23
相关标签:
9条回答
  • 2021-01-07 18:24

    Try this:

    .tab_title a{
        -ms-word-break: break-all;
        word-break: break-all;
        word-break: break-word;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    } 
    
    0 讨论(0)
  • 2021-01-07 18:26

    word-wrap: word-break; works only in ff and chrome and not in IE8 and IE9.
    word-break: break-all; does not work either.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题