答案 0 :(得分:3)
您可以使用border-bottom-left-radius
和border-bottom-right-radius
div {
background-color: lightgrey;
height: 55px;
width: 300px;
border-bottom-left-radius: 100%;
border-bottom-right-radius: 50%;
}
div:after {
content:"";
display: block;
background-color: cornflowerblue;
height: 50px;
width: 300px;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
}
<div></div>
答案 1 :(得分:2)
您也可以使用.box {
width:300px;
height:100px;
background:
radial-gradient(circle at 50% -300%,blue 90%,transparent 90.5%),
radial-gradient(circle at 60% -300%,grey 90%,transparent 90.5%);
}
:
<div class="box"></div>
&#13;
{{1}}&#13;