我试图复制下面的页脚设计,它使用了一个全宽的半圆形.
我简单地try 使用径向渐变背景作为页脚:
footer {
width: 100%;
position: relative;
bottom: 0;
background-image: radial-gradient(circle at center bottom, #387546, #387546 50%,transparent 50%);
height: 30vh;
}
<footer></footer>
我如何修改我的径向渐变来实现这一点?或者有没有更好的方法来获得想要的效果?(我只是在寻找设计中的绿色半圆形部分)