【发布时间】:2012-09-26 08:02:27
【问题描述】:
我有一个看起来像这样的表:
+----------------------+-------------------+
| This text is on the | This text is on |
| first column | the second column |
+----------------------+-------------------+
我希望它看起来像这样:
+----------------------------------+-----------------------------------+
| This text is on the first column | This text is on the second column |
+----------------------------------+-----------------------------------+
我的桌子比屏幕长,而且有很多行,但这是我想要的功能。是否有一个 CSS 属性可以在不截断文本的情况下实现这一点?如果没有,有人可以向我指出如何执行此操作的 javascript 示例吗?
【问题讨论】:
-
no-wrap应该可以工作:jsfiddle.net/RpSZt
标签: javascript html css html-table