0

我很难让 IE 正常工作。我创建了一个包含各种隐藏 div 的网页。

这些充当子页面,当单击导航项时,它们以非常基本的灯箱方式淡入/淡出。

它可以在 Firefox 和 Safari 中运行,但在 IE (8) 中它会淡入大约 60% 然后完全消失,还会消除背后 div 的背景?它仍然存在,因为我可以右键单击图像,只是不可见?

下面显示的代码会导致#home 淡入%50,然后#subAbout 在它消失之前淡入顶部。

任何意见,将不胜感激..

$("#nAbout").click(function () {
    if(currentActive != "#subAbout") {
    $(currentActive).fadeOut('fast');
    $('#slideshow').cycle('pause');
    $("#home").animate({opacity: .5});
    $("#subAbout").fadeIn('slow');
    currentActive = "#subAbout";
    }
    else if(currentActive == "#subAbout") {
    $('#slideshow').cycle('resume');
    $("#home").animate({opacity: 1});
    $("#subAbout").fadeOut('slow');
    currentActive="#subHome"
    }
    return false;
  }
);
4

1 回答 1

1

这听起来像是 CSS 冲突。您可以尝试删除您的内联样式/ css 并查看是否可以重现吗?

于 2010-02-20T01:52:13.767 回答