search

Home  >  Q&A  >  body text

html - css 英文段落换行,单词截断

现在英文展示的是这样,一篇英文文章,整个文章有一个宽度,每行换行的时候英文单词从中间截断了。

我想实现的是,换行的时候,整个单词换行,不要截断。

我尝试的办法:如下图属性,添加了word-wrap:break-word;结果就是英文单词被截断

依然有问题:

伊谢尔伦伊谢尔伦2864 days ago1627

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:49:55

    Set the width of the article directly without adding the attribute word-wrap and that’s it

    Set the width and add padding on the left and right. No problem, your situation will not happen


    There’s no problem with mine at all, why don’t you give it a try

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:49:55

    http://www.zhangxinxu.com/wor...

    You can refer to this blog, it is very detailed

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 14:49:55

    word-wrap:break-word;

    If word-break: break-all; does not exist, it should be fine

    reply
    0
  • Cancelreply