Bootstrap DropDown菜单:删除滚动条 [英] Bootstrap DropDown Menu: Remove Scrollbar
本文介绍了Bootstrap DropDown菜单:删除滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 GitHub-Repo 。
当窗口宽度减小时,导航栏将折叠并更改为带有滚动条(对于宽度和高度)的下拉菜单。
When the window width decreases,the navbar collapses and changes to a dropdown menu with scrollbars (for width and heigth).
如何删除这些滚动条?
我尝试添加
.navbar-collapse{
max-height:auto;
max-widht:auto;
}
到我处理折叠大小的css文件。
to my css file which handles the collapsing size.
推荐答案
另一个解决方案是将以下内容添加到您的CSS:
Another solution is adding the following to your CSS:
/* No scrolling for collapsed menu */
.navbar-collapse.in {
overflow: hidden;
max-height: none !important;
height: auto !important;
}
这篇关于Bootstrap DropDown菜单:删除滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文