主要的效果是在上下滚动的时候可以固定住表格的头部当前的位置,左边也是在左右滚动的时候也是可以固定住表格左边当前的位置,最好是能用jquery来实现,因为是要放到移动设备上的,横屏可能也是需要一直的!
欢迎选择我的课程,让我们一起见证您的进步~~
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.
position
absolute
fixed
Why do I feel like I am arranging work?
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
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
toabsolute
orfixed
. Then calculate its position.Why do I feel like I am arranging work?
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