gpt4 book ai didi

jquery - 最后一张幻灯片后的 Bootstrap 轮播高度正在改变

转载 作者:行者123 更新时间:2023-11-28 06:20:07 25 4
gpt4 key购买 nike

我使用了 bootstrap 3 旋转木马,我的横幅中有 3 张幻灯片,每个元素中有三个背景图像。我已经使用 data-ride="carousel" 激活了自动滑动,现在之后最后一张幻灯片旋转木马的高度正在改变,跳跃正在出现。我该如何纠正这些错误???

Live Demo

我的代码

<div class="banner">

<section id="main-slider" class="no-margin">
<div class="carousel slide" data-ride="carousel">

<div class="carousel-inner">

<div class="item active" style="background-image: url(images/slider/bg1.jpg)">
<div class="container">
<div class="row slide-margin">
<div class="col-sm-6">
<div class="carousel-content">
<h1 class="animation animated-item-1">Lorem ipsum dolor sit amet consectetur adipisicing elit</h1>
<h2 class="animation animated-item-2">Accusantium doloremque laudantium totam rem aperiam, eaque ipsa...</h2>
<a class="btn-slide animation animated-item-3" href="#">Read More</a>
</div>
</div>

<div class="col-sm-6 hidden-xs animation animated-item-4">
<div class="slider-img">
<img src="images/slider/img1.png" class="img-responsive">
</div>
</div>

</div>
</div>
</div><!--/.item-->



<div class="item" style="background-image: url(images/slider/bg3.jpg)">
<div class="container">
<div class="row slide-margin">
<div class="col-sm-6">
<div class="carousel-content">
<h1 class="animation animated-item-1">Lorem ipsum dolor sit amet consectetur adipisicing elit</h1>
<h2 class="animation animated-item-2">Accusantium doloremque laudantium totam rem aperiam, eaque ipsa...</h2>
<a class="btn-slide animation animated-item-3" href="#">Read More</a>
</div>
</div>
<div class="col-sm-6 hidden-xs animation animated-item-4">
<div class="slider-img">
<img src="images/slider/img3.png" class="img-responsive">
</div>
</div>
</div>
</div>
</div><!--/.item-->

<div class="item" style="background-image: url(images/slider/bg2.jpg)">
<div class="container">
<div class="row slide-margin">
<div class="col-sm-6">
<div class="carousel-content">
<h1 class="animation animated-item-1">Lorem ipsum dolor sit amet consectetur adipisicing elit</h1>
<h2 class="animation animated-item-2">Accusantium doloremque laudantium totam rem aperiam, eaque ipsa...</h2>
<a class="btn-slide animation animated-item-3" href="#">Read More</a>
</div>
</div>

<div class="col-sm-6 hidden-xs animation animated-item-4">
<div class="slider-img">

</div>
</div>

</div>
</div>
</div><!--/.item-->


</div><!--/.carousel-inner-->
</div><!--/.carousel-->
<a class="prev hidden-xs" href="#main-slider" data-slide="prev">
<i class="fa fa-chevron-left"></i>
</a>
<a class="next hidden-xs" href="#main-slider" data-slide="next">
<i class="fa fa-chevron-right"></i>
</a>
</section><!--/#main-slider-->




</div>

最佳答案

min-heightheight 设置为 carousel-inner 类。高度应与横幅高度相同。

关于jquery - 最后一张幻灯片后的 Bootstrap 轮播高度正在改变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35640993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com