【发布时间】:2011-04-02 01:14:11
【问题描述】:
假设我有一个固定宽度和高度的表格单元格...。我的数据超出了单元格的固定尺寸...
<td width="500" height="300">lots of data that exceeds the dimensions</td>
- 我可以在单元格内启用此数据的滚动吗....
- 如果不是解决方案。我只有那个 500 x 300 空间
【问题讨论】:
标签: html scroll html-table cell
假设我有一个固定宽度和高度的表格单元格...。我的数据超出了单元格的固定尺寸...
<td width="500" height="300">lots of data that exceeds the dimensions</td>
【问题讨论】:
标签: html scroll html-table cell
最简单的方法是添加一个 500 x 300 的 div 并给它overflow: auto
<td width="500" height="300">
<div style="width: 500px; height: 300px; overflow: auto">
lots of data that exceeds the dimensions
</div>
</td>
【讨论】: