jQuery动画在Internet Explorer中不起作用 [英] jQuery animation not working in Internet Explorer

查看:64
本文介绍了jQuery动画在Internet Explorer中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编码我的网站,而我的一个朋友正在帮助我.此代码在IE 10(Windows 7)上不起作用.我什至尝试了传统模式,但无济于事.例如,点击服务"后,此代码即可在FF或Chrome上运行.但是,不是在IE上.有人可以帮我修复此代码,以便它也可以在IE上运行吗?

I am coding my website, and a friend of mine was helping me. This code does not work on IE 10 (Windows 7). I even tried the legacy modes and to no avail. Upon clicking on "services" for example, this code would work on FF or Chrome. But, not on IE. Can someone help me fix this code so it would also work on IE?

$('#services-fr-2').on('click',function(){

    $(".clientsFr").hide();
    $('.servicesFr').fadeToggle();
    $('#green-pouch-fr').animate({
        'top':'450px'//,
        //'height':'450'
    });

});

这是要求的小提琴.

Here is the fiddle as requested.

http://jsfiddle.net/dVMT9/5/

推荐答案

我在IE9中也遇到了同样的问题.我尝试了不带引号的top,但效果很好.

I faced same problem in IE9. I tried top without quotes and it worked.

这篇关于jQuery动画在Internet Explorer中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆