只用一个div实现边框直角、倒角、 圆角、倒圆角
样式自调
<div class="box_border_radius"></div>
.box_border_radius{
width: 100px;
height: 100px;
background: linear-gradient(135deg, #fff 20px, transparent 0) top left,
radial-gradient(circle at 0% 100%, transparent 13px, #1359df 0) top right,
linear-gradient(#1359df, #1359df) right bottom,
linear-gradient(#1359df, #1359df) right bottom,
radial-gradient(circle at 0% 100%, #fff 13px, transparent 0) bottom left #00CAF5;
background-size: 50% 50%,15px 15px,5px 20px, 20px 5px,30% 30%;
background-repeat: no-repeat;
border-radius: 0 15px 0 0;
}
// 四个直角
{
background: linear-gradient(to left, #da3a2a, #da3a2a) left top,
linear-gradient(to bottom, #da3a2a, #da3a2a) left top,
linear-gradient(to left, #da3a2a, #da3a2a) right bottom,
linear-gradient(to left, #da3a2a, #da3a2a) right bottom;
}