开发者

HTML - Enable Scrolling within a Table's Cell

开发者 https://www.devze.com 2023-01-12 07:42 出处:网络
Let\'s say I have 开发者_运维百科a table cell with fixed width and height.... and I have data that exceeds the cell\'s fixed dimensions...

Let's say I have 开发者_运维百科a table cell with fixed width and height.... and I have data that exceeds the cell's fixed dimensions...

<td width="500" height="300">lots of data that exceeds the dimensions</td>
  • can I enable scrolling of this data within a cell....
  • if not than what is the solution.. I only have that 500 x 300 space


The easiest thing would be to add a 500 x 300 div and give it overflow: auto

<td width="500" height="300">
 <div style="width: 500px; height: 300px; overflow: auto">
  lots of data that exceeds the dimensions
 </div>
</td>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号