gpt4 book ai didi

Jquery addClass fadeIn fadeOut 在 IE8 中不起作用

转载 作者:行者123 更新时间:2023-12-01 05:00:53 24 4
gpt4 key购买 nike

我正在修改 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/

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