Jquery addClass fadeIn fadeOut 在 IE8 中不起作用

标签 jquery twitter-bootstrap fadein fadeout addclass

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

相关文章:

Android Volley - 如何动画图像加载?

div 中缩略图图像的 jQuery 淡入 - 代码不起作用

java - Android 淡入淡出不工作

jquery - 使用 z-index 组织滑动 Div?

javascript - 发送一个 ajax POSt 选中的复选框以及选定的下拉列表

javascript - jQuery:向表中添加行并在 DOM 中选择它

html - Bootstrap 中的列位置

javascript - Bootstrap 3 carousel 滑动时在下方滑动的白色背景

html - Bootstrap 3.0.3 navbar-right 和 pull-right

jQuery 应该模糊全屏背景图像