将文本包装在div - css中 [英] wrapping the text inside div - css

查看:100
本文介绍了将文本包装在div - css中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到包装问题。我生成一些hexencoding加密和输出过长等;

I am having issues with wrapping. I am generating some hexencoding encryption and the output is too long like ;

827938828ey823876te37257e5t328er6367r5erd663275e65r532r6s3624e5645376er563rdr753624e544341763r567r4e56r326r5632r65sr32dr32udr56r634r57rd63725

827938828ey823876te37257e5t328er6367r5erd663275e65r532r6s3624e5645376er563rdr753624e544341763r567r4e56r326r5632r65sr32dr32udr56r634r57rd63725

和它继续。当我把它放在一个div,它不会换行,即使我分配一个特定的宽度,因为他们都在一起。我希望它从下一行继续,如果股利是不足够的一行。

and it continues. When I put it inside a div, it wont wrap it even if I assign a specific width because they are all together. I want it to continue from the next line if the div is not enough for one line.

我该怎么办呢?

推荐答案

<击>可以不换行的文本,因为它是没有任何空格不间断。你需要一个JavaScript或服务器端解决方案,它经过几个字符分割字符串。

修改

您需要添加CSS这个属性。

You need to add this property in CSS.

自动换行:打破字;

这篇关于将文本包装在div - css中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆