2013-04-12 60 views
0

我有一个没有空格的文件路径的长字符串。例如:溢出表格单元格中的文本

这显示在table,是这样的:

<td> 
    /thisisthetopfolder/thisisthebottomfolder/thisisthefile.html 
</td> 

但是,文本不溢出到下一行,它只是砍掉/在表格单元格的结束截断宽度。我无法增加表格或表格单元的宽度。有没有办法强制溢出表格单元格中的文本,所以它不会被切断?

它看起来像这样:

------------------------------------------ 
| /thisisthetopfolder/thisi | other info | 
------------------------------------------ 

,它需要像这样:

------------------------------------------ 
| /thisisthetopfolder/thisi |   | 
| sthebottomfolder/thisisth |   | 
| efile.html    | other info | 
------------------------------------------ 
+0

你玩过['overflow'](http://www.w3schools.com/cssref/pr_pos_overflow.asp)属性吗? –

回答