0
我已經在我的網站上添加了一個collapse navbar: 這個問題是李類下拉不顯示,當我檢查它,我看到寬度和高度0px,但即使inf我改變它在李未出現檢查...Bootstrap navbar li class =「dropdown」not shown
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#home">Accueil</a></li>
<li><a href="#service">Le Service</a></li>
<li><a href="#portfolio">Notre rÉseau</a></li>
<li><a href="#about">Qui sommes nous?</a></li>
<li><a href="#contact">Contact</a></li>
<li class="dropdown">
<ul class="dropdown-menu">
<form id="login">
<li><input class="form_login" type="text" id="email" placeholder="e-mail" /></li>
<li><input class="form_login" type="password" id="password" placeholder="mot de passe" /></li>
<li><button class="form_login" id="submit" value="submit">Submit</button></li>
</form>
<li><a href="#" style="color: white;">Mot de passe oublié?</a></li>
<li><a href="#" style="color: white;">Créer un compte</a></li>
<li><a href="#"><span class="icon-facebook"></span></a></li>
<li><a href="#"><span class="twitter-square"></span></a></li>
<li><a href="#"><span class="google-plus"></span></a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
唯一的CSS是:
.dropdown-menu{
background-color: #181A1C;
padding: 3px;
border: 1px solid #181A1C;
}
這工作在我的網站以前的版本...然後我改變了東西,登錄李搞砸了...... – Michele