Firefox word-break breaks short words at random points

前端 未结 4 992
耶瑟儿~
耶瑟儿~ 2020-12-11 03:57

I\'m break-wording a container so that extremely long words won\'t overflow. While Chrome and Safari deal with this really well, it seems that Firefox and IE li

4条回答
  •  余生分开走
    2020-12-11 04:23

    You're doubling up on CSS parameters. Try this..

    .break-word {
    -ms-word-break: break-all;
    -ms-word-wrap: break-all;
    -webkit-word-break: break-word;
    -webkit-word-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    }
    

提交回复
热议问题