这是我的链接: http://ndi.nowmgbeta.com/
出于某种原因,当我收到响应按钮菜单时,它什么也没做。我已经更改了css以允许我激活较大菜单项上的悬停下拉菜单。什么会导致此响应式菜单不起作用?
没有骰子。这是我注意到的......当我更改此代码时:
<div class="row-fluid brand-nmg text-center">
<a id="logo" title="" href="http://ndi.nowmgbeta.com">
<img src="http://ndi.nowmgbeta.com/wp-content/uploads/2013/09/logo.png" alt="">
</a></div>
到此:
<div class="brand-nmg text-center">
<a id="logo" title="" href="http://ndi.nowmgbeta.com">
<img src="http://ndi.nowmgbeta.com/wp-content/uploads/2013/09/logo.png" alt="">
</a></div>
按钮有效。知道为什么“排液”不允许我点击?我已经尝试了几个没有运气的z-index mod。
答案 0 :(得分:1)
看起来您没有正确编写导航条代码以符合Bootstrap预期会发生的情况。看一下Bootstrap示例:
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Brand</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
<li class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
具体来说,您似乎错过了<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
包装器。
答案 1 :(得分:0)
事实证明,问题是行液体设定的100%宽度。我删除了行液并根据屏幕尺寸设置宽度小于100%,现在一切正常:)