本文介绍了更改默认响应式navbar断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法改变断点,Bootstrap菜单变得响应和崩溃?
is there a way to change the breakpoint where Bootstrap menu becomes responsive and collapse? 979px is far too big for me and I would like the transformation taking place only on smaller sizes.
推荐答案
是的,你可以做它通过重新定义 less / variables.less
文件中的 @navbarCollapseWidth
变量。然后重新编译css。
Yes, you can do it by redefining @navbarCollapseWidth
variable in less/variables.less
file. And recompiling css after that.
编译指令可以在官方文档。
Compiling instructions can be found in Compiling Bootstrap with Less section of official documentation.
这篇关于更改默认响应式navbar断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!