html - css 英文段落换行,单词截断
伊谢尔伦
伊谢尔伦 2017-04-17 14:47:55
0
3
1558

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

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

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

依然有问题:

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
洪涛

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

Peter_Zhu

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

You can refer to this blog, it is very detailed

巴扎黑
word-wrap:break-word;

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template