为什么这种javascript效果不能在ie7中使用?

为什么这种javascript效果不能在ie7中使用?,javascript,jquery,html,css,internet-explorer,Javascript,Jquery,Html,Css,Internet Explorer,为什么这种javascript效果不能在ie7中使用 IE7不起作用 为什么我不能在ie7中使用此函数 function over(event) { $('.notch2').stop().animate({top: '33px' , opacity: 1}, 100); $('.mask').stop().animate({top: '0px' , opacity: 1}, 100); } 但我可以在IE7上使用它 func

为什么这种javascript效果不能在ie7中使用

IE7不起作用

为什么我不能在ie7中使用此函数

function over(event)
{
    $('.notch2').stop().animate({top: '33px' , opacity: 1}, 100);
    $('.mask').stop().animate({top: '0px' , opacity: 1}, 100);                          
}
但我可以在IE7上使用它

function over(event)
{
    $('.notch2').show();
    $('.mask').show();                         
}
IE7不支持CSS不透明度。您需要具有以下语法:

filter: Alpha(Opacity=100);

您的第一个案例是否在更高版本的IE中工作?我使用like而不是work$love box.css{opacity:1.0}。动画{top:'0px',opacity:1},100;$。css{opacity:1.0}。动画{top:'70px',opacity:1},100;