我有一个下拉菜单和一个子菜单。子菜单在内容后面展开而不是将其向下推。
我无法弄清楚以下哪个是导致它的原因:
bootstrap.css
style.css
bootstrap-responsive.css
我正在即时学习 html/css/bootstrap,我一直在谷歌搜索并尝试解决方案几个小时,但无济于事。
高度始终计算为 160px,这不在任何代码中。
我试过在可能的情况下设置 z-index 并使 height: auto. 但也许我没有把它放在正确的地方。
我怎样才能缩小罪魁祸首的范围?
谢谢。
附上截图。
查询应打开子菜单并按设计下推内容。
但..
Submenu is getting hidden. Chrome debugger tells me the problem but I have no idea where to change it?
Please let me know what else u need me to provide
Upgraded from bootstrap 2.3.1 to bootstrap 3.2.1. It's no longer an issue in bootstrap 3.2.1. The section with the issue is in
/* ======================================================================== * Bootstrap: collapse.js v3.3.7 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */
Too many changes compared to 2.3.1 and also in the section:
// CSS 过渡支持 (Shoutout: http://www.modernizr.com/ ) // ============================== ================================
我已经区分了旧的和新的,做了一些替换以缩小到这两个小节。不知道哪个确切的行在最新版本中修复了它。
也许有足够经验的人最终可以玩转并发布更好的答案。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句