css - 聊天气泡背景图自适应问题
PHP中文网
PHP中文网 2017-04-17 14:24:23
0
4
808

用css来模拟QQ这种图片背景的气泡聊天,有时候会出现中文和字符/英文断行的情况(输入的时候是连续输入的),为什么会这样?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(4)
迷茫

Try adding a word-break to p

Peter_Zhu

English words and symbols are unbroken by default. You can set it to force no number change

黄舟
 word-break: break-all;
洪涛

This situation is normal and there is no need to deal with it. Word-break: break-all will instead cause consecutive words to be forcibly broken up, affecting the normal reading experience. If there is no support for ancient browsers (IE6-IE8) Requirements, recommended use:

word-wrap:break-word;
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template