Twitter Bootstrap scrollspy always selecting last element

后端 未结 13 1639
旧巷少年郎
旧巷少年郎 2020-12-08 04:22

I have an issue with scrollspy, recreated in this fiddle: http://jsfiddle.net/jNXvG/3/

As seen in the demo, the ScrollSpy plugin always keeps the last menu item sele

13条回答
  •  抹茶落季
    2020-12-08 05:01

    In my case, Firefox was always selecting the last element and it was NOT the

    height:100%;
    

    on the body that was causing the problem (as I didn't have anything like that).

    It was a

    position:absolute; 
    

    on a container div.

    Hope it helps someone out there...

提交回复
热议问题