Jasny bootstrap:移动视图 [英] Jasny bootstrap: Mobile View

查看:59
本文介绍了Jasny bootstrap:移动视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Jasny bootstrap 创建左侧导航菜单,但遇到了一个问题.

I 'm using Jasny bootstrap to create a left hand navigation menu and I came across an issue.

因此,对于移动屏幕,您会得到类似上述内容.你应该如何关闭菜单?这是他自己在他的网站

So, for mobile screens you get something like the above. How are you supposed to close the menu? This is from his own examples at his website

谢谢!

推荐答案

你可以使用类似的东西

$('.navmenu, .navbar-offcanvas').css({
  "width": (viewport - 50) + "px"
});

并且您在所有设备上都得到了固定缩进,请参阅 answer

and you get fixed indent on all devices, see that answer

这篇关于Jasny bootstrap:移动视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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