隐藏类在特定的屏幕尺寸上不起作用,因为它在767px上显示隐藏类。我不知道为什么会这样?

时间:2019-02-11 08:51:24

标签: twitter-bootstrap-3

在此图像屏幕尺寸767px中,所有隐藏的div出现,然后在屏幕下方消失

enter image description here

我不知道发生了什么,只有hidden-xs类会导致此问题。

     

  <ol class="carousel-indicators carousel-circles text-center">
    <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/app.png" width="302" height="542"  class="img-responsive" />
      <div class="carousel-caption carousel-text">
        <h3>Track your Barber in <br />
          real time from the <br />
          shop. </h3>
      </div>
    </div>
    <div class="item"> <img src="images/app.png" width="302" height="542" class="img-responsive"/>
      <div class="carousel-caption carousel-text">
        <h3>Track your Barber in <br />
          real time from the <br />
          shop. </h3>
      </div>
    </div>
    <div class="item"> <img src="images/app.png" width="302" height="542" class="img-responsive"/>
      <div class="carousel-caption carousel-text">
        <h3>Track your Barber in <br />
          real time from the <br />
          shop. </h3>
      </div>
    </div>
  </div>

  <a class="left carousel-control pull-right  hidden-xs right-arrow" href="#myCarousel" data-slide="prev"> <span class="glyphicon glyphicon-arrow-right arrow-in"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control hidden-xs hidden-md hidden-lg right-arrow" href="#myCarousel" data-slide="next"> <span class="glyphicon   "></span> <span class="sr-only">Next</span> </a> </div>

0 个答案:

没有答案