Twitter bootstrap 引导转盘滑动功能。胜利者';我不能在Mozilla中工作
我有这个密码:Twitter bootstrap 引导转盘滑动功能。胜利者';我不能在Mozilla中工作,twitter-bootstrap,jquery-animate,carousel,mozilla,Twitter Bootstrap,Jquery Animate,Carousel,Mozilla,我有这个密码: var $carousel = $('#carousel-showcase'); $carousel.carousel(); $carousel.bind('slide.bs.carousel', function (e) { setTimeout( function(){ var left = $carousel.find('.item.active.left'); var right = $carousel.find('.item.active.rig
var $carousel = $('#carousel-showcase');
$carousel.carousel();
$carousel.bind('slide.bs.carousel', function (e) {
setTimeout( function(){
var left = $carousel.find('.item.active.left');
var right = $carousel.find('.item.active.right');
if(left.length > 0) {
$("#wrap").animate({
backgroundPositionX: '+=50%'
},0);
}
else if(right.length > 0) {
$("#wrap").animate({
backgroundPositionX: '-=50%'
},0);
}
}, 500);
});
在bootstrap 3旋转木马中启动幻灯片更改动画功能。在Chrome中一切正常,但在Mozilla中却不正常。有什么建议吗?背景位置X(或Y)仅适用于webkit或IE()。您必须对所有其他浏览器使用css功能:
$("#wrap").css('backgroundPosition','45% 0%');
有关示例,请参见