使用的属性如下:
<div style="width:100%; height:180px; overflow-y:scroll; position: relative;">
<table></table>
</div>
同理:
<td>
<div style="width:100%; height:180px; overflow-y:scroll; position: relative;"></div>
</td>
<div style="width:100%; height:180px; overflow-y:scroll; position: relative;">
<table></table>
</div>
同理:
<td>
<div style="width:100%; height:180px; overflow-y:scroll; position: relative;"></div>
</td>
本文介绍了一种在网页中使用DIV标签包裹TABLE或TD元素实现水平和垂直滚动条的方法,以解决长表格在不同屏幕尺寸下的显示问题。
3803

被折叠的 条评论
为什么被折叠?



