gpt4 book ai didi

jquery - bootstrap 3 旋转木马在骑自行车时高度缩小

转载 作者:可可西里 更新时间:2023-11-01 12:48:32 24 4
gpt4 key购买 nike

正如我所说,当轮播循环时,其中元素的高度会变小,直到到达下一帧。如果有人可以阐明这个问题,我将不胜感激,这是必须解决的问题,它让我发疯,其他所有可食用的东西。

HTML :

               <div id="shop-crsl-1" class="carousel slide shop-crsl hidden-xs" data-ride="carousel">

<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active row">
<div class="col-sm-4">
<div class="shop-col-item">
<div class="photo">
<img src="images/sc/shop-crsl-1.png" class="img-responsive" alt="a">
</div>
<div class="info">
<div>
<div class="price">
<h5>Casual Suit</h5>
<h5 class="main-text-color">$199.99</h5>
</div>

<div class="rating">
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
</div>

<div class="btns clear-left">
<p class="btn-add"><i class="fa fa-shopping-cart"></i><a href="#">Add to cart</a></p>
<p class="btn-details"><i class="fa fa-list"></i><a href="#">More details</a></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>

<div class="col-sm-4">
<div class="shop-col-item">
<div class="photo">
<img src="images/sc/shop-crsl-2.png" class="img-responsive" alt="a">
</div>
<div class="info">
<div>
<div class="price">
<h5>Night Suit</h5>
<h5 class="main-text-color">$249.99</h5>
</div>

<div class="rating">

</div>
</div>

<div class="btns clear-left">
<p class="btn-add"><i class="fa fa-shopping-cart"></i><a href="#">Add to cart</a></p>
<p class="btn-details"><i class="fa fa-list"></i><a href="#">More details</a></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>

<div class="col-sm-4">
<div class="shop-col-item">
<div class="photo">
<img src="images/sc/shop-crsl-3.png" class="img-responsive" alt="a">
</div>
<div class="info">
<div>
<div class="price">
<h5>Elegant Suit</h5>
<h5 class="main-text-color">$149.99</h5>
</div>

<div class="rating">
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
</div>

<div class="btns clear-left">
<p class="btn-add"><i class="fa fa-shopping-cart"></i><a href="#">Add to cart</a></p>
<p class="btn-details"><i class="fa fa-list"></i><a href="#">More details</a></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>

<div class="item row">
<div class="col-sm-4">
<div class="shop-col-item">
<div class="photo">
<img src="images/sc/shop-crsl-1.png" class="img-responsive" alt="a">
</div>
<div class="info">
<div>
<div class="price">
<h5>Super-Casual Suit</h5>
<h5 class="main-text-color">$199.99</h5>
</div>

<div class="rating">
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
</div>

<div class="btns clear-left">
<p class="btn-add"><i class="fa fa-shopping-cart"></i><a href="#">Add to cart</a></p>
<p class="btn-details"><i class="fa fa-list"></i><a href="#">More details</a></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>

<div class="col-sm-4">
<div class="shop-col-item">
<div class="photo">
<img src="images/sc/shop-crsl-2.png" class="img-responsive" alt="a">
</div>
<div class="info">
<div>
<div class="price">
<h5>Super-Night Suit</h5>
<h5 class="main-text-color">$249.99</h5>
</div>

<div class="rating">

</div>
</div>

<div class="btns clear-left">
<p class="btn-add"><i class="fa fa-shopping-cart"></i><a href="#">Add to cart</a></p>
<p class="btn-details"><i class="fa fa-list"></i><a href="#">More details</a></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>

<div class="col-sm-4">
<div class="shop-col-item">
<div class="photo">
<img src="images/sc/shop-crsl-3.png" class="img-responsive" alt="a">
</div>
<div class="info">
<div>
<div class="price">
<h5>Super-Elegant Suit</h5>
<h5 class="main-text-color">$149.99</h5>
</div>

<div class="rating">
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="main-text-color fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
</div>

<div class="btns clear-left">
<p class="btn-add"><i class="fa fa-shopping-cart"></i><a href="#">Add to cart</a></p>
<p class="btn-details"><i class="fa fa-list"></i><a href="#">More details</a></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>


<!-- Controls -->
<div class="controls">
<a class="left fa fa-chevron-left" href="#shop-crsl-1" data-slide="prev"> </a>
<a class="right fa fa-chevron-right" href="#shop-crsl-1" data-slide="next"> </a>
</div>
</div>

亲爱的CSS

.shop-crsl {
position: relative;
overflow: hidden;
-webkit-backface-visibility: hidden;
padding: 0 15px;
-webkit-transform: translateZ(0) scale(1.0, 1.0);
}

.shop-crsl .controls a {
position: absolute;
top: 50%;
width: 100%;
line-height: 53px;
width: 50px;
border-radius: 2px;
text-align: center;
margin-top: -30px;
font-size: 11px;
height: 50px;
transition: all 0.35s ease;
-webkit-transition: all 0.35s ease;
-moz-transition: all 0.35s ease;
-o-transition: all 0.35s ease;
-ms-transition: all 0.35s ease;
}

.shop-crsl .controls a:hover {
text-decoration: none;
}

.shop-crsl .controls .left {
left: 15px;
position: absolute;
padding-right: 3px;
}

.shop-crsl .controls .right {
right: 15px;
position: absolute;
padding-left: 3px;
}

.shop-col-item:hover {
cursor: pointer;
}

.shop-promo {
text-align: center;
padding: 15px;
border-radius: 5px;
margin-bottom: 10px;
}

.shop-promo h3 {
margin-top: 20px;
}

.shop-promo .title {
font-size: 42px;
line-height: 48px;
padding: 12px 0;
padding-bottom: 22px;
}

.shop-promo .button {
margin: 24px 0;
}

.shop-promo p {
margin: 10px 0;
}

.shop-col-item {
}

.shop-col-item .photo {
border-radius: 5px;
}

.shop-col-item .photo img {
margin: 0 auto;
width: 100%;
}

.shop-col-item .info {
padding: 10px;
border-radius: 0 0 5px 5px;
margin-top: 1px;
}

.shop-col-item .price {
width: 50%;
float: left;
margin-top: 5px;
}

.shop-col-item .price h5 {
line-height: 20px;
margin: 0;
}

.shop-col-item .rating {
width: 50%;
float: left;
font-size: 17px;
text-align: right;
line-height: 52px;
margin-bottom: 10px;
height: 52px;
}

.shop-col-item .btn-add {
width: 50%;
float: left;
}

.shop-col-item .btn-details {
width: 50%;
float: left;
padding-left: 10px;
}

.shop-col-item .btn-details .fa-list {
position: relative;
top: 1px;
}

.shop-col-item .btns p {
font-size: 11px;
line-height: 20px;
margin-bottom: 0;
margin-top: 10px;
}

.shop-col-item .btns p i {
font-size: 14px;
margin-right: 5px;
}

最佳答案

我遇到了这个问题并修复了它。事实证明,我在我的站点中使用了“左”和“右”类,而这些类实际上是为 Twitter Bootstrap 保留的。所以,我的 CSS 说 .left { stuff here } 实际上是在修改轮播。我只是将我的 CSS 更改为具有不同的名称,而不是使用“left”和“right”,而是使用“float-left”和“float-right”,这修复了它。

关于jquery - bootstrap 3 旋转木马在骑自行车时高度缩小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21742614/

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