Bootstrap 5 Navbar崩溃滞后
我需要引导纳维尔崩溃的帮助。当我单击“汉堡”菜单时,在完全展开之前,它不到第二个滞后。另外,如果您非常快地单击,就像对汉堡图标多次点击一样,X图标动画会延迟,并且X变成了封闭的图标,而不是汉堡图标,这很令人沮丧,因为我喜欢对我的NAV崩溃。请在下面查看我的链接以获取直播版本:
I need help with bootstrap navbar collapse. When I click the burger menu, there is less than a second lag before it fully expands. Also, if you click very fast, like multiple clicks on the burger icon, the x icon animation gets delayed, and the x becomes the closed icon rather than the burger icons, which is frustrating because I like to have a bit of delay with my nav collapse. please check my link below for a live version :
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,基本上,我将UL添加到
nav-Collapse
中,所以现在其.navbar-Collapse UL {高度:100VH; }
因此,解决方案是将UL的高度设置为100VH,而不是整个Navbar-Collapse的高度。So basically I added ul to the
nav-collapse
so now its.navbar-collapse ul { height: 100vh; }
so the solution is to set the height of the ul to 100vh, not the height of the whole navbar-collapse.