更改默认响应式navbar断点 [英] Change the default responsive navbar breakpoint

查看:96
本文介绍了更改默认响应式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.

编译指令可以在编译Bootstrap with Less 官方文档。

Compiling instructions can be found in Compiling Bootstrap with Less section of official documentation.

这篇关于更改默认响应式navbar断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆