Skip to content
中文
https://qishaoxuan.github.io/css_tricks/longText
scss
.long-text{
  white-space: pre-line;
  word-wrap: break-word;
}

TIP

Text length beyond the line generally occurs when the last character is an English word or a concatenated number. Using the above Settings will cause the word to break.

Read or leave comments on GitHub