gpt4 book ai didi

css - Bootstrap 子菜单出现在下拉菜单上

转载 作者:太空宇宙 更新时间:2023-11-03 18:49:55 25 4
gpt4 key购买 nike

我正在使用最新的 Twitter Bootstrap 和来自 "Awful Media" 的“Respond”主题.

我的问题是,我的下拉菜单的子菜单出现在下拉菜单上方,而不是在右侧左右,您无法正确阅读任何内容..

(我不知道我应该准确发布哪个代码,如果你看看我的 beta-Testsite 可能会有帮助?导致问题的子菜单在“采取行动”下。)

最佳答案

从这里匹配您的 html 和类

它与您的代码完全相同{may you use the same}

Devin walker multi-child navbar for bootstrap


并为新 child 添加主题类(class)以获得相同的外观和感觉

如果解决了

为下拉项尝试这些样式

.navbar .nav > li > a {
float: none;
margin: 25px 10px 5px;
padding: 5px;
font-size: 18px;
line-height: 19px;
margin-left: 20px;
color: #999999;
border: none;
background-image: url("../img/color.jpg");
background-size: 100%;
background-position: -200px -10px;
background-repeat: no-repeat;
font-family: 'Lato', sans-serif;
-webkit-transition: background-position .5s ease, color .8s ease;
-moz-transition: background-position .5s ease, color .8s ease;
-o-transition: background-position .5s ease, color .8s ease;
}
.navbar .nav > li > a:hover {
color: #fff;
background-position: 0 0;
text-decoration: none;
background-color: transparent;
font-family: 'Lato', sans-serif;
}

.navbar .nav .active > a,
.navbar .nav .active > a:hover {
text-decoration: none;
color: #fff;
background-position: 0 0;
background-image: url("../img/color.jpg");
background-size: 100%;
}

关于css - Bootstrap 子菜单出现在下拉菜单上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15272085/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com