【发布时间】:2022-11-02 20:05:43
【问题描述】:
我无法使用边界半径重现此形状:
现在我得到这个:
这是我的 css 代码(它在网格内):
.container-11-1 {
grid-column: 1;
grid-row: 1 / 3;
background: #e4cab6;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;
margin-bottom: 30px; //otherwise the bottom stick to the section below and it's even worse
}
【问题讨论】:
-
您能否也向我们展示您的 html 并从中制作一个有效的 code-sn-p ?
-
请出示您的 HTML。问题可能出自
grid-row: 1 / 3 -
您的 50% 是对象尺寸,因此您需要简单地调整比率以适应对象大小比率。
标签: css