平行四边形
平行四边形的构造可以基于矩形通过skew()的变形属性进行斜向拉升得到(skew所用的坐标系,纵向是X轴,横向是Y轴,与常见的坐标系相反)。
DOCTYPE html > html lang ="en" > head > meta charset ="UTF-8" > title > Title title > style > .location { position : relative ; top : 150px ; left : 150px ; } .button { color : white ; background-color : #51bfff ; width : 120px ; height : 50px ; line-height : 50px ; text-align : center ; transform : skewX(-45deg) ; } style > head > body > div class ="location button" > click div > body > html >
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did101344