在表格单元格中包装文本 [英] Wrap a text inside a table cell

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

问题描述



我正在使用serlvet,我需要知道如何在不使用CSS的情况下将单元格内容包装到单元格宽度。我需要通过td标签直接实现这一点。



我尝试过的方法:



out.println(< table width = 100%height = 100%table-layout = fixed border = 0>);



out .println(< td style =white-space:nowrap; width = 90>);

解决方案

它应该是宽度:90px,而不是width = 90

 out.println( < td style = \width:90px \>); 



示例 [ ^ ]


hi,
i am using serlvet and i need to know how to wrap a cell contents to a cell width without using CSS. i need to achieve this directly through the td tag.

What I have tried:

out.println("<table width=100% height=100% table-layout=fixed border=0>");

out.println("<td style="white-space:nowrap; width=90>");

解决方案

It should be width:90px, not width=90

out.println("<td style=\"width:90px\">");


Example[^]


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

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