<div style="overflow-x: hidden; overflow-y: auto; height: 100%; width:100%;">
<table id="dataTable" width="100%">
</table>
</div>
DIV样式中的宽度和高度可以设置固定值,也可以设成100%,占满父容器中的空间。
<div style="overflow-x: hidden; overflow-y: auto; height: 100%; width:100%;">
<table id="dataTable" width="100%">
</table>
</div>
DIV样式中的宽度和高度可以设置固定值,也可以设成100%,占满父容器中的空间。