FireFox 与 Chrome 自动换行

Firefox is different from Chrome in implementing the word-wrap, but we can use one Class to make these two browsers compatible, as following:
.word_wrap{
    //make Chrome word wrap
   word-wrap: break-word;
   // FF
   white-space: pre-wrap;
}

你可能感兴趣的:(自动换行,chrome,firefox,word-wrap)