Bootstrap轮播 - 未应用边框半径

时间:2015-04-16 19:53:24

标签: javascript jquery html css twitter-bootstrap

我创建了一个bootstrap 3轮播,它使用这个动画http://jackonthe.net/css3animateit/并在.carousel-inner上应用了边框半径。所有尺寸的所有最新浏览器都能正常运行,但当我在我的阿尔卡特单触式平板电脑上查看旋转木马的网站时,它看起来像电视上的彩色静电。在那种情况下,我在.carousel-inner div中应用了动画。

HTML:

  <div class="carousel slide animatedParent animateOnce" id="carousel-example-generic" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators animated growIn slowest">
      <li class="active" data-target="#carousel-example-generic" data-slide-to="0"></li>
      <li data-target="#carousel-example-generic" data-slide-to="1"></li>
      <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>
    <!-- Wrapper for slides -->
      <div class="carousel-inner animated fadeIn slowest" role="listbox">
        <div class="item active">
          <img class="img-responsive" src="images/carousel-1.jpg" alt="description">
        </div>
        <div class="item">
          <img class="img-responsive" src="images/carousel-2.jpg"  alt="description">
        </div>
        <div class="item">
          <img class="img-responsive" src="images/carousel-3.jpg" alt="description">
        </div>
      </div>
    </div>
    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
    </a>
  </div>

CSS:

.carousel-inner {
border-radius: 4px;
width: 100%;
height: auto;
}

然后,我试图在外面添加另一个div .carousel-inner,我在那里转移了动画类。这解决了我的平板电脑上的问题,但现在边界半径是不可见的,无论我尝试我放在哪里。 Chrome显示风格已应用,但外观没有差异。

HTML现在看起来像这样:

     <div class="animated fadeIn slowest">
      <div class="carousel-inner" role="listbox">
        <div class="item active">
          <img class="img-responsive" src="images/carousel-1.jpg" alt="description">
        </div>
        <div class="item">
          <img class="img-responsive" src="images/carousel-2.jpg"  alt="description">
        </div>
        <div class="item">
          <img class="img-responsive" src="images/carousel-3.jpg" alt="description">
        </div>
      </div>
    </div>

感谢任何帮助。

编辑:这似乎是Chrome问题,在Firefox边框半径中应用。但我仍然不知道Chrome。

0 个答案:

没有答案