引导 - 无法点击移动,并第一次点击下拉子菜单项没有引发资产净值崩溃 [英] Bootstrap - Can't click dropdown child menu items on mobile and first click not triggering nav-collapse

查看:147
本文介绍了引导 - 无法点击移动,并第一次点击下拉子菜单项没有引发资产净值崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我碰到两个问题在移动设备上的下拉菜单项。具体做法是:

I've run into two issues with dropdown menu items on mobile devices. Specifically:

    我的资产净值崩溃未在BTN-导航栏的第一次点击显示,但只在iPhone上
  1. 虽然我可以切换的下拉列表中,我不能点击移动设备上的任何下拉菜单项。
  1. My nav-collapse isn't shown on the first click of btn-navbar, but only on an iPhone.
  2. While I can toggle dropdowns, I can't click on any dropdown-menu items on mobile devices.

我的页面上W3验证有效,我已经加入这两个.nav倒塌和.collapse类来我的导航栏。加上调整我的笔记本电脑在浏览器窗口时,一切工作正常。

My page is valid on W3 Validator and I have added both the .nav-collapse and .collapse classes to my navbar. Plus everything works fine when resizing the browser window on my laptop.

您可以在这里看到的直播网页: http://hartmandashboard.com/

You can see the live web page here: http://hartmandashboard.com/

有没有人看到这个问题?有人在乎提供一个潜在的解决?我倒是AP preciate任何帮助。

Has anyone seen this problem before? Anyone care to offer a potential fix? I'd appreciate any help.

感谢

推荐答案

是的,我以前看到这一点,我看到的问题是在github上也是如此。我不记得确切位置,我发现这一点,但有些人在说,这是对这些元素设置为位置的问题:绝对的; 并重新将它们设置为静态将修复它。

Yes, I've seen this before and I saw the issue is on github as well. I don't remember exactly where I found this, but some guy was saying that it was an issue about setting those elements to position: absolute; and that re setting them to static would fix it.

那么,为什么你不继续前进,试试这个在您的自定义CSS:

So why don't you go ahead and try this on your custom CSS:

CSS

.dropdown-backdrop {
  position: static;
}

让我知道,如果我们是在同一页上,这解决您的问题。

Let me know if we're on the same page and this solved your issue.

这篇关于引导 - 无法点击移动,并第一次点击下拉子菜单项没有引发资产净值崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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