用于添加左上角圆角边框。第一个值是水平半径,第二个值是垂直半径。如果省略第二个值,则复制第一个值。如果长度为零,则边角为方形,而不是圆形。水平半径的百分比值参考边框盒的宽度,而垂直半径的百分比值参考边框盒的高度。
/* the corner is a circle */ /* border-top-left-radius: radius */ border-top-left-radius: 3px; /* the corner is an ellipsis */ /* border-top-left-radius: horizontal vertical */ border-top-left-radius: 0.5em 1em;
<length> 定义圆角的形状。
<length>
<percentage> 以百分比定义圆角的形状
<percentage>
[<length> | <percentage>] [ / [<length> | <percentage>]]?
不支持 inherit、initial、revert、unset 等
Loading...