半圆
<div class="half-circle"></div>
div {
width: 100px;
height: 100px;
margin: 50px;
background: red;
}
.half-circle {
height: 50px;
border-radius: 50px 50px 0 0;
}
扇形
<div class="sector"></div>
div {
width: 100px;
height: 100px;
margin: 50px;
background: red;
}
.sector {
width: 50px;
height: 50px;
border-radius: 50px 0 0 0;
transform: rotate(45deg);
}
三角
<div class="triangle"></div>
div {
width: 100px;
height: 100px;
margin: 50px;
background: red;
}
.triangle {
width: 0px;
height: 0px;
background: none;
border: 50px solid red;
border-color: transparent transparent red transparent;
}
梯形
<div class="ladder"></div>
div {
width: 100px;
height: 100px;
margin: 50px;
background: red;
}
.ladder {
width: 50px;
height: 0;
background: none;
border: 50px solid red;
border-color: red transparent transparent transparent;
}
690



被折叠的 条评论
为什么被折叠?



