The problem of Chinese punctuation typesetting in css

there is a small problem in the mobile page. Chinese punctuation affects text typesetting.
original text: "the special license plate for emergency rescue is divided into two kinds of car license plate and motorcycle license plate. Each pair of two car license plates are suspended at the rear of the vehicle respectively" open "and" off "," full "and" empty "," inside "and" outside "and other concepts."
only set font-size and color, but not text-align, word-break and other properties. Css: {font-size:16px;color:-sharp333333} is shown as follows:

:{text-align: justify;word-break: normal;}:

the solution now is $(em). Text (). Split (""). Join (""). Css ("letter-spacing","-.1em"). The effect looks good, but there is no guarantee that punctuation will not appear at the beginning of the line. Do you have any advanced experience to teach?

Feb.07,2022

word-break:break-all;

if you have this property, delete it.


you clear all the styles, and then try using text-align: justify;, this property should be satisfied.


text-align: justify;

this property can be set to align both ends.

Menu