然后每次是调用jscript函数添加的行tr
tr = fffffa.insertRow();
如何做到让我这个table超过4行以后,再insert就带滚动条?
2 个解决方案
#1
<div style="width:600;height:400;scroll:auto">
<table id = "fffffa" width:100%> </table>
</div>
<table id = "fffffa" width:100%> </table>
</div>
#2
<div style="width:600;height:100;overflow:auto">
<table id ="fffffa" width=100%>... </table>
</div>
<table id ="fffffa" width=100%>... </table>
</div>
#1
<div style="width:600;height:400;scroll:auto">
<table id = "fffffa" width:100%> </table>
</div>
<table id = "fffffa" width:100%> </table>
</div>
#2
<div style="width:600;height:100;overflow:auto">
<table id ="fffffa" width=100%>... </table>
</div>
<table id ="fffffa" width=100%>... </table>
</div>