主要的效果是在上下滚动的时候可以固定住表格的头部当前的位置,左边也是在左右滚动的时候也是可以固定住表格左边当前的位置,最好是能用jquery来实现,因为是要放到移动设备上的,横屏可能也是需要一直的!
迷茫2017-04-17 11:26:11
I can only provide you with ideas:
Determine the scroll position of the window. If you need the header to "float", set the header's position
to absolute
or fixed
. Then calculate its position.
ringa_lee2017-04-17 11:26:11
If you feel it is not compatible with your own writing, just use a framework. There are many mobile-focused frameworks out there.
framework7
appframework
jquery mobile
Something