Home  >  Article  >  Web Front-end  >  CSS3 clip-path attribute_html/css_WEB-ITnose

CSS3 clip-path attribute_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:46:17848browse

First of all, let’s talk about the clip-path attribute. I have never seen this clip-path attribute before. After searching on the Internet, it turns out that clip-path means ‘cut’.
clip-path:polygon(x,y) attribute, x in polygon(x,y) represents the position of the abscissa (px %), and y represents the position of the ordinate (px %).
In the final analysis, this clip-path cutting is just like photoshop. It can replace photoshop to cut pictures. However, the difference between code and ps is that the code needs to find the path manually, while ps can directly use the magic wand.
This is the picture I just cut with clip-path:

In fact, svg can also make path diagrams. svg also has clippath attribute.

Original image address: http://images.cnblogs.com/cnblogs_com/hao5599/678419/o_20150314.jpg

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn