Home  >  Q&A  >  body text

jquery - 需要做一个类似于课程表APP的html5页面,主要的功能是需要实现表格头部和左边固定的效果

主要的效果是在上下滚动的时候可以固定住表格的头部当前的位置,左边也是在左右滚动的时候也是可以固定住表格左边当前的位置,最好是能用jquery来实现,因为是要放到移动设备上的,横屏可能也是需要一直的!

天蓬老师天蓬老师2766 days ago753

reply all(3)I'll reply

  • 迷茫

    迷茫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.

    reply
    0
  • 阿神

    阿神2017-04-17 11:26:11

    Why do I feel like I am arranging work?

    reply
    0
  • ringa_lee

    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

    reply
    0
  • Cancelreply