更新时间:2022-04-15 22:46:05
首先处理@ grid-float-breakpoint等是一个巨大的痛苦...
First off dealing with the @grid-float-breakpoint, etc. is a HUGE Pain in the ...
这可能适合你,它是一个jQuery调整大小功能,您可以设置断点来折叠菜单。根据需要编辑widow.width。将内部脚本标记放在页面底部。 HTH!
This may work for you it's a jQuery resize function where you can set the breakpoint to collapse the menu. Edit the widow.width as applicable. Put the inside script tags at the bottom of your page. HTH!
$(window).resize(function() {
if ($(window).width() < 768) {
$('.navbar-collapse a').click(function(e) {
$('.navbar-collapse').collapse('toggle');
});
}
});