A sticky Top Bar makes the page jump up when scrolling past it with Zurb Foundation

前端 未结 4 1367
没有蜡笔的小新
没有蜡笔的小新 2021-01-13 06:47

I am using the Zurb Foundation 4 framework for my site. I want to have a navbar that is positioned beneath a header that sticks to the top of the page when you scroll past.

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-13 07:05

    This issue was fixed: https://github.com/zurb/foundation/issues/1993

    Answer:

    If you don't want it to jump to the top specify in data-options:

    or on initialization:

    $(document).foundation('topbar', {scrolltop: false});
    

提交回复
热议问题