您的位置:首页 > Web前端 > CSS

css

2019-08-06 22:21 1451 查看

1.CSS3绘制不规则图形
https://www.geek-share.com/detail/2742561471.html

2.css切角效果,折角效果
https://www.cnblogs.com/yhhBKY/p/10642696.html

.one{
&:before {
content: "";
position: absolute;
top: 2px;
left: 2px;
right: 2px;
bottom: 2px;
background: green;
background: linear-gradient(135deg,transparent 15px, green 0)top left;
background-size: 100% 100%;
background-repeat: no-repeat;
}
&:after{
content: "";
position: absolute;
top: 2px;
left: 2px;
right: 2px;
bottom: 2px;
background: linear-gradient(0deg,#003a00 0%, green 100%);
background: linear-gradient(135deg,transparent 15px,#003a00 5%, green 100%)top left;
background-size: 100% 100%;
background-repeat: no-repeat;
}
position: relative;
height: 200px;
width: 200px;
margin: 10px auto;
line-height: 200px;
background: #000;
background: linear-gradient(135deg,transparent 15px, #000 0)top left;
background-size: 100% 100%;
background-repeat: no-repeat;
}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: