1

这是我的链接: 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 模组,但都没有运气。

4

2 回答 2

1

It looks like you haven't written your navbar code properly to conform with what Bootstrap expects to happen. Look at the Bootstrap example:

<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>

Specifically, it looks like you are missing the <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> wrapper.

于 2013-10-30T18:32:29.803 回答
0

事实证明,问题在于行流体设置的 100% 宽度。我删除了行流体并根据屏幕尺寸将我的宽度设置为小于 100%,现在一切正常:)

于 2013-10-31T19:34:44.357 回答