今天意外解决了之前编辑单元格随滚动条移动的问题,忍不住想记录一下
问题如下:
解决方法:
在外层滚动条的div中追加position: relative;
将
<div style="width:1300px; height : 400px;overflow:auto;">
<div id="spreadDiv" style="width:100%; height: 800px"></div>
</div>
修改为
<div style="width:1300px; height : 400px;overflow:auto;position: relative;">
<div id="spreadDiv" style="width:100%; height: 800px"></div>
</div>