我正在修改 IE8 的 Bootstrap 轮播支持。这适用于 chrome 和 FF,但不适用于 IE 8,它会改变且不会淡入。有人知道为什么吗?
<style>
.carousel .activerow {display: none;}
.carousel .row { left: 0; opacity: 1; }
</style>
/*I have many rows of data in the dom
They are not visible until'active' class
is added.
This code is binded to a link
*/
var activeset = $active; //contains the contents of current row
var nextset = $next; //contains contents of the next
$active.fadeOut('slow', function () {
activeset.removeClass('activerow');
nextset.addClass('active');
nextset.fadeIn('slow');
});
最佳答案
我认为你有一个 type-o。
$active.fadeOut(....
可能需要
$(active).fadeOut(....
编辑:在发布此内容之前没有想到。
既然您正在缓存该元素,您确定您的选择器返回匹配项吗?
关于Jquery addClass fadeIn fadeOut 在 IE8 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10249991/