Jquery Bootstrap 3.2隐藏在导航栏后面的旋转木马

Jquery Bootstrap 3.2隐藏在导航栏后面的旋转木马,jquery,css,twitter-bootstrap-3,Jquery,Css,Twitter Bootstrap 3,我正在使用Bootstrap 3.2制作导航栏和旋转木马,但当我将浏览器宽度减小到mobile时,旋转木马隐藏在导航栏下 作为对的回应,我尝试了提供的解决方案,但是转盘没有更多的响应 我在Bootstrap的网站上遵循了这个例子,但是在这个网站上没有旋转木马的例子。所以我从他们主页上的模板中看到了carousel的代码。不知道为什么它隐藏了吗?我是否使用了错误的类 这是你的电话号码 我的旋转木马代码: <div id="myCarousel" class="carousel slide"

我正在使用Bootstrap 3.2制作导航栏和旋转木马,但当我将浏览器宽度减小到mobile时,旋转木马隐藏在导航栏下

作为对的回应,我尝试了提供的解决方案,但是转盘没有更多的响应

我在Bootstrap的网站上遵循了这个例子,但是在这个网站上没有旋转木马的例子。所以我从他们主页上的模板中看到了carousel的代码。不知道为什么它隐藏了吗?我是否使用了错误的类

这是你的电话号码

我的旋转木马代码:

<div id="myCarousel" class="carousel slide" data-ride="carousel">
              <!-- Indicators -->
              <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
              </ol>
              <div class="carousel-inner">
                <div class="item active">
                  <img src="images/carousel_large_01.jpg" alt="First slide">
                  <div class="container">
                    <div class="carousel-caption">
                      <h1>Example headline.</h1>
                      <p>Note: If you're viewing this page via a <code>file://</code> URL, the "next" and "previous" Glyphicon buttons on the left and right might not load/display properly due to web browser security rules.</p>
                      <p><a class="btn btn-lg btn-primary" href="#" role="button">Sign up today</a></p>
                    </div>
                  </div>
                </div>
                <div class="item">
                  <img src="images/carousel_large_02.jpg" alt="Second slide">
                  <div class="container">
                    <div class="carousel-caption">
                      <h1>Another example headline.</h1>
                      <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                      <p><a class="btn btn-lg btn-primary" href="#" role="button">Learn more</a></p>
                    </div>
                  </div>
                </div>
                <div class="item">
                  <img src="images/carousel_large_03.jpg" alt="Third slide">
                  <div class="container">
                    <div class="carousel-caption">
                      <h1>One more for good measure.</h1>
                      <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                      <p><a class="btn btn-lg btn-primary" href="#" role="button">Browse gallery</a></p>
                    </div>
                  </div>
                </div>
              </div>
              <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
              <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
        </div>

如果删除
navbar固定顶部
类,则旋转木马看起来就像您想要的那样。如果您想使用
navbar fixed top
类,并且还想在navbar下方显示旋转木马,请添加一些自定义css,如
.someclass{margin top:20px;}
或添加一些引导类,如jumbotron等

添加
导航栏固定顶部
将固定/粘贴导航栏顶部,这就是为什么转盘将隐藏在其后面


您还可以查看响应类

。。。您需要在屏幕上添加填充body@Danko例如我试过了,但还是一样的问题。似乎旋转木马
标题
隐藏在旋转木马
div
中现在我明白了。。。但似乎很难解决,因为您的标题位于距底部20像素的位置。你能做的就是减少信息量,改变风格,就像这样。。。也许还藏着子弹之类的东西way@Danko:是的,这是一个很好的解决方案,但不是解决方案。我仍在努力寻找解决方案。Bootstrap网站上的示例模板具有正确的工作转盘。