如何讓邊界向內彎曲而不是向外彎曲?邊界半徑曲線向內?
例如 - 這是向外彎曲:
header {
position: relative;
height: 300px;
background-image: linear-gradient(#ff9d2f, #ff6126);
border-bottom-left-radius: 50% 20%;
border-bottom-right-radius: 50% 20%;
}
h1 {
margin: 0;
padding: 100px 0;
font: 44px "Arial";
text-align: center;
}
header h1 {
color: white;
}
<header>
<h1>Header Content</h1>
</header>
<section>
<h1>Section Content</h1>
</section>
我想它想的曲線向內,這可能嗎?
您可以通過使用'after'或得到'before' – LKG
@LokeshGupta任何例子嗎? – laukok
檢查我張貼的工作示例作爲答案 – LKG