是否可以为特定角应用“border-radius”?
Is it possible to apply `border-radius` for a specific corner ?
我知道可以将 border-radius 通常应用于 area.but 现在我正在处理包含不同角半径值的设计。是否可以为特定角应用 border-radius
?
来自 W3Schools
在 <div>
元素的右上角添加圆角边框:
div {
border: 2px solid;
border-top-right-radius: 2em;
}
此外,对于一些额外的信息,我建议您查看以下内容:
CSS3 Borders
选择要圆化的角,然后选择以下四行之一。
border-radius: 10px 0 0 0;
border-radius: 0 10px 0 0;
border-radius: 0 0 10px 0;
border-radius: 0 0 0 10px;
我知道可以将 border-radius 通常应用于 area.but 现在我正在处理包含不同角半径值的设计。是否可以为特定角应用 border-radius
?
来自 W3Schools
在 <div>
元素的右上角添加圆角边框:
div {
border: 2px solid;
border-top-right-radius: 2em;
}
此外,对于一些额外的信息,我建议您查看以下内容: CSS3 Borders
选择要圆化的角,然后选择以下四行之一。
border-radius: 10px 0 0 0;
border-radius: 0 10px 0 0;
border-radius: 0 0 10px 0;
border-radius: 0 0 0 10px;