CSS - border-bottom-left-radius 属性



CSS border-bottom-left-radius 属性控制元素边框左下角的圆角程度。

语法

border-bottom-left-radius: length | % [length | %] | initial | inherit;

属性值

描述
长度值 它使用长度值定义左下角圆角的大小。默认值为 0。
百分比 它使用百分比值定义左下角圆角的大小。
initial 这将属性设置为其默认值。
inherit 这从父元素继承属性。

Explore our latest online courses and learn new skills at your own pace. Enroll and become a certified expert to boost your career.

CSS 边框左下角圆角属性示例

以下示例使用不同的值解释了border-bottom-left-radius 属性。

使用长度值的边框左下角圆角

要设置左下角边框的圆角,可以使用长度值指定半径。在以下示例中,使用border-bottom-left-radius 属性使用了 80px 半径。

示例

Open Compiler
<!DOCTYPE html> <html> <head> <style> .rounded-border { border: 3px solid black; border-bottom-left-radius: 80px; width: 200px; height: 200px; } </style> </head> <body> <h2> CSS border-bottom-left-radius property </h2> <div class="rounded-border"> This shows the border-bottom-left-radius property with 80px radius. </div> </body> </html>

使用百分比值的边框左下角圆角

要设置左下角边框的圆角,可以使用百分比值指定半径。在以下示例中,使用border-bottom-left-radius 属性使用了 30% 半径。

示例

Open Compiler
<!DOCTYPE html> <html> <head> <style> .rounded-border { border: 3px solid black; border-bottom-left-radius: 30%; width: 200px; height: 200px; } </style> </head> <body> <h2> CSS border-bottom-left-radius property </h2> <div class="rounded-border"> This shows the border-bottom-left-radius property with 30% radius. </div> </body> </html>

使用两个值的边框左下角圆角

要设置左下角边框的圆角,可以使用一个或两个值。单个值会统一影响半径,而两个值分别设置水平和垂直半径。以下示例显示了区别。

示例

Open Compiler
<!DOCTYPE html> <html> <head> <style> .single-value { border: 3px solid black; border-bottom-left-radius: 60px; width: 200px; height: 200px; } .double-value { border: 3px solid black; border-bottom-left-radius: 60px 10px; width: 200px; height: 200px; } </style> </head> <body> <h2> CSS border-bottom-left-radius property </h2> <p class="single-value"> This shows the border-bottom-left-radius property with single value. </p> <p class="double-value"> This shows the border-bottom-left-radius property with two values. </p> </body> </html>

支持的浏览器

属性 Chrome Edge Firefox Safari Opera
border-bottom-left-radius 5.0 9.0 4.0 5.0 10.5
css_properties_reference.htm
广告