我正在使用grails渲染将表格渲染为pdf。当列数据更多而数据不会中断时(即应仅将其固定到该列中),我使用了“word-break:break-all”属性,但它根本无法正常工作。
例如
<div style="text-align:center;word-break: break-all">
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
</div>
最佳答案
没有空间,整个事情就是一个词,我们必须打破这个词以使其包裹起来。使用word-wrap: break-word;
。希望它能解决您的问题。
关于css - Grails渲染插件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39382668/