Vertical fixed top navbar on Bootstrap 4 Beta

不羁的心 提交于 2019-12-11 17:38:22

问题


I'm trying to build a vertical fixed top navbar with Bootstrap 4 Beta. I have found on the web several examples of Bootstrap v4.0.0-alpha.6, but they do not work with Bootstrap 4 Beta. I have the problem that when the navbar assumes the fixed-top class the links and the the collapsed navbar move to the left. Below are links to html image with code:

Html code

You can see the menu behavior and code at this address: http://www.fedelemarcopascuzzi.it/verticalnavbar/


回答1:


I am experiencing the exact same problem! The behavior looks a bit like it thinks the display is small and is rendering the menu as if it were on a phone.

Edit: Alpha samples don't work, this code is working for me: https://getbootstrap.com/docs/4.0/examples/navbar-top-fixed/



来源:https://stackoverflow.com/questions/45962300/vertical-fixed-top-navbar-on-bootstrap-4-beta

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!