Raphael.js changing the stacking order of elements

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.