CSS3 圆角
cssweb developmentfront end technology更新于 2024/2/24 4:28:17
CSS3 圆角用于通过使用 border-radius 属性为正文或文本添加特殊颜色的角。
圆角的简单语法如下 −
#rcorners {
border-radius: 60px/15px;
background: #FF0000;
padding: 20px;
width: 200px;
height: 150px;
}
下表显示了圆角的可能值:
| 值 | 描述 |
|---|---|
| border-radius | 使用此元素设置四个边框半径属性 |
| border-top-left-radius | 使用此用于设置左上角边框的元素 |
| border-top-right-radius | 使用此元素设置右上角边框 |
| border-bottom-right-radius | 使用此元素设置右下角边框 |
| border-bottom-left-radius | 使用此元素设置左下角边框角落 |
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

