表格换行的问题

1<table>
2<tr>
3<td>   
4不要换行不要换行不要换行不要换行不要换行   
5</td>
6</tr>
7</table>

我得页面中有这样一个表格
我得页面的宽度很小,如果表格中的文字很长的话,
我不希望它换行,希望在页面的下面出现横向的滚动条
应该怎么办啊?
---------------------------------------------------------------

1<div style="overflow:auto;width:100;height:100">
2<table>
3<tr>
4<td nowrap="">   
5不要换行不要换行不要换行不要换行不要换行   
6</td>
7</tr>
8</table>
9</div>

---------------------------------------------------------------

更完善的应该是这样子

1<div style="overflow-x:auto;width:100%;height:100%">
2<table height="100%" width="100%">
3<tr>
4<td nowrap="">   
5不要换行不要换行不要换行不要换行不要换行   
6</td>
7</tr>
8</table>
9</div>
Published At
Categories with Web编程
comments powered by Disqus