Twitter Bootstrap scrollspy always selecting last element

后端 未结 13 1641
旧巷少年郎
旧巷少年郎 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:05

    I fixed it using body height 100% but it didnt work on Firefox. After wasting so much time found the answer on github page. Applying height 100% to HTML tag fixes the issue both for Chrome and Firefox.

    https://github.com/twbs/bootstrap/issues/5007

提交回复
热议问题