[英]how to make css curve box with gradient & shadow
我正在尝试使用渐变和阴影制作css曲线框。 所以我如何用纯css制作它应该只在一个div中没有太多的代码。
供参考,请参阅附图: -
你只需要像这样做边界半径
CSS
div {
width:200px;
margin:auto;
margin-top:20px;
height:200px;
background:red;
border-radius:25px;
box-shadow: inset 0 0 15px rgba(68,68,68,0.8);;
position:relative;
}
div:beforae {
content:"";
position:absolute;
border-left:15px solid blue;
border-right:15px solid green;
height:200px;
border-radius:15px 0 0 15px;
}
HTML
<div></div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.