代码拉取完成,页面将自动刷新
同步操作将从 qianming/css效果图收集 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container {
height: 500px;
width: 500px;
padding-top: 100px;
}
.rectangle2 {
margin-top: 50px;
height: 100px;
width: 300px;
background: linear-gradient(-75deg, transparent 30px, #58a 0) right,
linear-gradient(75deg, transparent 30px, #58a 0) left;
background-size: 50% 100%;
background-repeat: no-repeat;
}
.rectangle {
position: relative;
height: 300px;
width: 300px;
/* background: #58a; */
background: linear-gradient(-45deg, transparent 7.5px, #58a 0) right,
linear-gradient(45deg, transparent 7.5px, #58a 0) left;
/* clip-path: polygon(
0 0,
100% 0,
100% calc(100% - 12.5px),
calc(100% - 12.5px) 100%,
12.5px 100%,
0 calc(100% - 12.5px)
); */
background-size: 50% 100%;
background-repeat: no-repeat;
border: 1px solid blue;
/* border-right: 1px solid red; */
}
.rectangle::before {
position: absolute;
content: "";
width: 16px;
height: 16px;
bottom: -8px;
left: -8px;
transform: rotate(46deg);
background: transparent;
border-top: 1px solid blue;
}
.rectangle::after {
position: absolute;
content: "";
width: 16px;
height: 16px;
bottom: -8px;
right: -8px;
transform: rotate(46deg);
background: transparent;
border-left: 1px solid blue;
}
.rectangle3 {
position: relative;
margin-top: 50px;
margin-left: 50px;
height: 100px;
width: 300px;
background: #58a;
}
.rectangle3::before {
position: absolute;
content: "";
right: -20px;
bottom: 0;
width: 0;
height: 0;
border-bottom: 100px solid transparent;
border-left: 20px solid #000000;
}
.rectangle3::after {
position: absolute;
content: "";
left: -30px;
bottom: 0;
width: 0;
height: 0;
border-bottom: 100px solid transparent;
border-right: 30px solid rgba(0,0,0,0.5);
}
</style>
</head>
<body>
<div class="container">
<div class="rectangle"></div>
<div class="rectangle2"></div>
<div class="rectangle3"></div>
</div>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。