Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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!
如果您使用的是 jquery,则以下解决方法对我有用;
$("#container canvas:last").css("position", "relative");
不好,但希望这可以帮助某人。