CSS border-bottom-left-radius 属性值说明
值 | 说明 |
---|---|
length | 指定左下角的圆角为“px”。 |
% | 指定左下角的舍入百分比。 |
initial | 将属性设置为其默认值。 |
inherit | 从父元素继承属性。 |
border-bottom-left-radius 指定元素左下角的圆形。
border-bottom-left-radius 属性是 CSS3 属性之一。
存在三种形状:圆形或者椭圆形,如果不使用任何值,则角为方形。
如果我们使用背景图像或者颜色,它将在边框处被剪裁。
剪辑的过程由 background-clip 属性的值定义。
border-bottom-left-radius 属性有两个值:长度和百分比。
当只给出一个值时,它指定椭圆的水平和垂直半径。
如果给出两个值,第一个值设置水平半径,第二个值设置垂直半径。
水平半径的百分比是指盒子的宽度,垂直半径的百分比是指盒子的高度。
不允许使用负值。
如果 CSS border-bottom-left-radius 属性的值未设置为应用于 border-bottom-left-radius 属性之后的元素的 border-radius 速记属性,则速记属性将重置那个值到它的初始值。
初始值 | 0 |
---|---|
应用于 | 所有元素。它也适用于::first-letter。 |
继承 | 无效 |
可动画的 | 左下边框的半径可以设置动画。 |
版本 | CSS3 |
DOM 语法 | object.style.borderBottomLeftRadius=“35px”; |
语法
border-bottom-left-radius: length| % | initial | inherit;
border-bottom-left-radius 属性示例:
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div { height: 40px; background: #1c87c9; border: 4px solid #000000; border-bottom-left-radius: 25px; } </style> </head> <body> <h2>Border-bottom-left-radius 示例.</h2> <div></div> </body> </html>
具有两个值的 border-bottom-left-radius 属性示例:
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div { height: 40px; background: #666; border: 4px solid #000000; border-bottom-left-radius: 30px 15px; } </style> </head> <body> <h2>Border-bottom-left-radius 示例</h2> <div></div> </body> </html>
具有“百分比”值的 border-bottom-left-radius 属性示例:
<!DOCTYPE html> <html> <head> <style> div { border: 2px solid blue; background-color: #666; padding: 10px; border-bottom-left-radius: 50%; } </style> </head> <body> <h2>Border-bottom-left-radius 示例</h2> <div></div> </body> </html>
日期:2020-06-02 22:14:17 来源:oir作者:oir