原理:修改webkit-transform: skewY属性来修改倾斜度(旋转也是一样的道理)文章源自菜鸟学院-https://www.cainiaoxueyuan.com/zhizuo/9077.html
.edge--bottom {
position: relative;
z-index: 1;
}
.edge--bottom:after {
background: inherit;
content: '';
display: block;
height: 50%;
left: 0;
position: absolute;
right: 0;
z-index: -1;
}
.edge--bottom:after {
bottom: 0;
-webkit-transform: skewY(-1.5deg);
-ms-transform: skewY(-1.5deg);
transform: skewY(-1.5deg);
-webkit-transform-origin: 100%;
-ms-transform-origin: 100%;
transform-origin: 100%;
}
复制代码
效果:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/zhizuo/9077.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/zhizuo/9077.html
作者:codercao文章源自菜鸟学院-https://www.cainiaoxueyuan.com/zhizuo/9077.html