我无法在 IE7 中沿着路径移动一个简单的形状(实际上是我尝试过的唯一 IE 版本)。以下代码在 chrome 和 firefox 中运行良好,但在 IE 中运行良好。我找不到明显的原因,有人见过类似的东西吗?
canvas.path(rPath.path).attr("stroke", "blue");
var circle = canvas.circle(rPath.startX, rPath.startY, 5);
circle.animateAlong(rPath.path, 3000, true);
我的 rPath 变量具有路径和起点坐标。
Microsoft 脚本调试器指出这一行是代码中断的地方:
os.left != (t = x - left + "px") && (os.left = t); (line 2131 inside the uncompressed raphael.js script file, inside Element[proto].setBox = function (params, cx, cy) {...})
有任何想法吗?在 IE7 中使用 raphael 的 animateAlong 的任何经验(好或坏)?
TIA,安德烈