对于我的网站,页面中有两个不同的引导轮播。每个都应该有自己的过渡速度。经过长时间的尝试,我找到了通过 javascript 的出路
document.getElementById("image1").style.cssText="position: relative;-webkit-transition: 5s ease-in-out left;-moz-transition: 5s ease-in-out left;-o-transition: 5s ease-in-out left;transition: 5s ease-in-out left;";
对于 html
<div id="carouseltheme" class="carousel slide">
<div class="carousel-inner" style="height:280px;margin-left:0em;">
<div id="image1" class=" active item">
<div class="row-fluid">
<div class="span12" style="margin-top:1em;margin-left:5.5em">
"inner-carousel"
</div>
</div>
</div>
<div id="image1" class="item">
<div class="row-fluid">
<div class="span12" style="margin-top:1em;margin-left:5.5em">
"inner-carousel"
</div>
</div>
</div>
</div>
</div>
过渡速度降低,但滑动不一致。请帮我...