Making a polygon div
Little brother in the Web page encountered a problem: Want to create a polygon Div, the front div protruding a triangle, the back of the div recessed a triangle, so that two div protruding and recessed part of the right embedding, overlap, how do you master, how to achieve it?
------Optimal Solution--------------------
With the picture deception implementation, with PHP self-painting, with canvas not compatible, or picture good, where you see examples of complex patterns are painted
------Other Solutions--------------------
If the hard to use DIV implementation, with a small div simulation into a line, that is, the edge of the triangle.
------Other Solutions--------------------
Daniel to help younger brother Ah, grateful!
------Other Solutions--------------------
Tell me, what markup in HTML can produce triangles?
------Other Solutions--------------------
The simplest to use pictures ....
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.