In HTML and CSS, how do I make japanese text break lines correctly?

前端 未结 5 916
时光说笑
时光说笑 2021-01-04 03:23

I\'m writting a simple paragraph in both English and Japanese, using only HTML and CSS. The English text breaks lines normally (when a word doesn\'t fit on a line anymore, i

5条回答
  •  庸人自扰
    2021-01-04 04:20

    I'm not an expert with Japanese specifically so it's hard for me to tell if things are wrapping correctly, but I just had to solve this problem myself and both word-break: keep-all and white-space: nowrap seemed to solve the issue for me, so those might be worth trying out.

提交回复
热议问题