【问题标题】:This JQuery animation does not work in Chrome (ok in FF & IE)此 JQuery 动画在 Chrome 中不起作用(在 FF 和 IE 中正常)
【发布时间】:2011-02-11 16:57:52
【问题描述】:

此 jQUery 动画在 IE9 和 FF 上运行良好,但在 Chrome 上运行不正常...
$(document).ready(function(){
var width=420;
$("#popupFlyer").animate({left:'-='+width},3000,'linear'); }

div 通过 css 定位,如下所示:
#popupFlyer { z-index:100000; position:relative; top: 50px; left:100%; width:400px; margin:0px; }
最终效果应该是从右向左滑入。
使用 Chrome,div 的起始位置是错误的……如果我禁用动画,div 的位置就可以了。我正在使用 jquery-1.4.4.min.js。 注意:我需要 z-index。 添加 HTML
<body><div id="popupFlyer">My content</div> other content <body>

【问题讨论】:

    标签: jquery google-chrome


    【解决方案1】:

    此处未定义宽度。需要查看更多围绕它的代码才能知道发生了什么。

    【讨论】:

      【解决方案2】:

      我认为这是带有 jQ​​uery 的 Chrome 的问题 见this

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-04-13
        • 2012-12-15
        • 2013-03-12
        • 1970-01-01
        • 2012-03-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多