0

i have a kineticjs, i use tag to get kineticjs canvas's position is center

#mycanvas{text-align:center;}

And when run it, event area far from object 200px , at left side of object. I can't understand the reason? Thank for all answer!

4

1 回答 1

0

如果您使用的是 jquery,则以下解决方法对我有用;

            $("#container canvas:last").css("position", "relative");

不好,但希望这可以帮助某人。

于 2013-02-20T04:08:28.363 回答