相关疑难解决方法(0)

在IE中缓慢的jQuery动画

我有一个网站http://www.special4you.co.uk,并有一个由气球制作的动画导航.这在FF和Chrome中看起来很漂亮,但在所有的IE中,它看起来很不错,因为动画效果很差且呈锯齿状.有谁知道为什么这个或者如果这是我的错?

我的代码是:

$(document).ready(function(){
    Cufon.replace('h1, p, #address, h2');
    $(".balloon-nav").hover(function(hoverEvent) {
        $("a.balloon-nav").click(function(clickEvent, hoverEvent){
            clickEvent.stopPropagation();
            var element = $(this);
            var target = element.attr("href");
            var zIndex = element.css("z-index");
            element.attr("href", "#").css("z-index", "100");
            element.animate({ top: "0" }, 1500, 'easeOutBounce', function() {
                element.css("z-index", zIndex);
                window.location=target;
            });
        });
        var e = this;
        $(e).animate({ marginTop: "-14px" }, 250, function() {
            $(e).animate({ marginTop: "-10px" }, 250);
        });
    },function(){
        var e = this;
        $(e).animate({ marginTop: "4px" }, 250, function() {
            $(e).animate({ marginTop: "0px" }, 250);
        });
    }); 
});
Run Code Online (Sandbox Code Playgroud)

jquery animation internet-explorer

3
推荐指数
1
解决办法
2577
查看次数

标签 统计

animation ×1

internet-explorer ×1

jquery ×1