The raphael.js element changes the stacking order, and Raphael.js is a vector drawing library compatible with SVG and VML. Beginners feel the CSS Z-index can be done, the result is not supported, but the vector drawing conforms to the DOM standard. You can change the DOM loading order to achieve the desired results.
1, see Raphael.js API, there is a way to change the cascade, but only found two interchangeable. Check the source code to find a way to change the DOM structure.
2. The XML DOM appendchild () method removes the original element and inserts it into the new location. Initially thought only added, does not remove the original. Go a lot of detours, the foundation is not solid.
3. Raphael.js has element.node to get a reference to the DOM object. This allows the native Js,element.node.parentnode.appendchild (Element.node) to be used and/or moved to the top layer.