1. 程式人生 > >css 梯形及顏色漸變

css 梯形及顏色漸變

div{ margin:30px; width:150px; height:50px; background-color:yellow; border-left: 1px solid; border-right: 1px solid; border-bottom: 2px solid; border-image: linear-gradient(to top,  red ,rgb(0,0,0,0)) 1 1; transform:perspective(0.5em) rotateX(-3deg); }

效果如圖: