Raphael在IE9及以上版本的IE中对于path的拖动表现不正常

Raphael使用path修改箭头的位置,在IE8正常,但是在IE9及以上无法移动,打开f12查看位置属性已经修改,但是视图上面没有移动

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div onclick="change()">dianwo </div>
    <div id="paper"></div>
    <script src="../js/raphael-min.js"></script>
    <script>
        var paper = new Raphael(document.getElementById("paper"), (window.screen.width - 350), 500);
        var path = paper.path("M  " + 20 + " " + 20 + " L " + 80 + " " + 80 + "").attr({
            "stroke": "#000",
            "fill": "#000",
            "stroke-width": 2,
            "arrow-end": 'classic-wide-long'
        });

        function change() {
            path.attr({
               "path": "M  " + 50 + " " + 20 + " L " + 110 + " " + 80 + ""
            });
        }
    </script>
</body>

</html>
阅读 1.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进