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

CSS3 clip-path attribute_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:46:17
Original
871 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template