如何在Bootstrap导航栏中加快移动设备的下拉菜单? [英] How can I speed up the mobile dropdown in the Bootstrap navbar?

查看:65
本文介绍了如何在Bootstrap导航栏中加快移动设备的下拉菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在手机上,导航栏上有一个下拉菜单。但这太慢了。

On the mobile phone, there is a dropdown menu on the navbar. But it is far too slow.

它是基于JQuery的吗?还是基于CSS过渡?如何加快速度?

Is it JQuery based? Or is it CSS transition based? How do I speed it up?

推荐答案

这是基于CSS过渡的,请尝试从此类的transition属性更改height值

It is CSS transition based, try changing the height value from the transition property of this class.

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition: height .35s ease;
       -o-transition: height .35s ease;
          transition: height .35s ease;
}

这篇关于如何在Bootstrap导航栏中加快移动设备的下拉菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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