FireFox 单词可以用 css 打破,但一次一个字母,而不是连字符应该在哪里???
不是火狐:
火狐:
这是CSS:
.superLongStuff {
/*
SUPER LOOOOOOOOOOOONG WORD STUFF ...
*/
/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
/* This is the dangerous one in WebKit, as it breaks things wherever */
word-break: break-all;
/* Instead use this non-standard one: */
word-break: break-word;
/* Adds a hyphen where the word breaks, if supported (No Blink) */
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}