jquery - 如何对齐 DIV 包含没有空格的字符串

标签 jquery css string html alignment

我有一个没有空格的动态字符串

i.e: 12345678912345678912345634589 // This is a dynamic content from php.

我有一个DIV,宽度200px 因此,如果字符串中没有空格,则该字符串将超出DIV。 我该如何解决?我希望这个字符串在达到 200 像素的宽度限制时从 New Line 开始。

我也做了一个JsFiddle DEMO:

http://jsfiddle.net/ACF7N/6/

最佳答案

关于jquery - 如何对齐 DIV 包含没有空格的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18765748/

相关文章:

javascript - Chrome 扩展 : Edit the current url on click and then redirect to the edited one

javascript - 从一组 jQuery 元素中选择个体

html - 是否可以使用填充 : 0 auto? 使元素居中

java - 进行字符串连接需要多少个内存位置?

python - 如何仅使用 str.format 在 python3 中截断和填充?

C++:字符串和 union Bison

javascript - 无法提交隐藏输入的值

更改 src 时图像加载的 jquery 回调

jquery - 阻止 CSS 文档在移动设备上加载

html - 如何在 HTML/CSS/Bootstrap 中将输入字段居中