We would like to know how to use CSS3 to create clip-path, polygon.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
img {<!--from w w w . j a v a2 s.c o m-->
-moz-clip-path: polygon(0px 0px, 300px 0px, 300px 300px);
-webkit-clip-path: polygon(0px 0px, 300px 0px, 300px 300px);
clip-path: polygon(0px 0px, 300px 0px, 300px 300px);
max-width: 100%;
}
</style>
</head>
<body>
<img src="http://placekitten.com/300/300" />
</body>
</html>
The code above is rendered as follows: