HTML CSS examples for CSS Property:clip-path
Set clip-path: polygon
<html> <head> <style> #btn2{<!-- www . jav a 2s. c om--> width: 150px; height: 100px; background: lightblue; -webkit-clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%); clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%); } </style> </head> <body> <button id="btn2">Hello</button> </body> </html>