【发布时间】: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