border-bottom-left-radius CSS property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner.

The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.

The rounding can be a circle or an ellipse, or if one of the value is 0 no rounding is done and the corner is square.

border-bottom-left-radius.png

A background, being an image or a color, is clipped at the border, even a rounded one; the exact location of the clipping is defined by the value of the background-clip 特性。

注意: If the value of this property is not set in a border-radius shorthand property that is applied to the element after the border-bottom-left-radius CSS property, the value of this property is then reset to its initial value by the shorthand property .

句法

/* the corner is a circle */
/* border-bottom-left-radius: radius */
border-bottom-left-radius: 3px;
/* Percentage values */
/* circle if box is a square or ellipse if box is a rectangle */
border-bottom-left-radius: 20%;
/* same as above: 20% of horizontal(width) and vertical(height) */
border-bottom-left-radius: 20% 20%;
/* 20% of horizontal(width) and 10% of vertical(height) */
border-bottom-left-radius: 20% 10%;
/* the corner is an ellipse */
/* border-bottom-left-radius: horizontal vertical */
border-bottom-left-radius: 0.5em 1em;
border-bottom-left-radius: inherit;
					

With one value:

With two values:

  • the first value is a <length> <percentage> denoting the horizontal semi-major axis of the ellipse to use for the border in that corner.
  • the second value is a <length> <percentage> denoting the vertical semi-major axis of the ellipse to use for the border in that corner.

<length-percentage>
Denotes the size of the circle radius or the semi-major and semi-minor axes of the ellipse. As absolute length it can be expressed in any unit allowed by the CSS <length> data type. Percentages for the horizontal axis refer to the width of the box, percentages for the vertical axis refer to the height of the box. Negative values are invalid.

形式定义

初始值 0
适用于 all elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse . The behavior on internal table elements is undefined for the moment.. It also applies to ::first-letter .
继承 no
百分比 refer to the corresponding dimension of the border box
计算值 two absolute <length> s or <percentage> s
动画类型 a length , percentage or calc();

形式句法

<length-percentage>{1,2}

where
<length-percentage> = <length> | <percentage>

范例

Examples of different border-bottom-left-radius values

实时范例 代码

.

An arc of circle is used as the border
div {
  border-bottom-left-radius: 40px 40px;
}
										

.

An arc of ellipse is used as the border
div {
  border-bottom-left-radius: 40px 20px;
}
											

.

The box is a square: an arc of circle is used as the border
div {
  border-bottom-left-radius: 40%;
}
												

.

The box is not a square: an arc of ellipse is used as the border
div {
  border-bottom-left-radius: 40%;
}
													

.

The background color is clipped at the border
div {
  border-bottom-left-radius:40%;
  border-style: black 3px double;
  background-color: rgb(250,20,70);
  background-clip: content-box;
}
														

规范

规范 状态 注释
CSS Backgrounds and Borders Module Level 3
The definition of 'border-bottom-left-radius' in that specification.
候选推荐 初始定义

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
border-bottom-left-radius Chrome 完整支持 4 Edge 完整支持 12 Firefox 完整支持 4 注意事项
完整支持 4 注意事项
注意事项 Prior to Firefox 50, border styles of rounded corners were always rendered as if border-style was solid. This has been fixed in Firefox 50.
完整支持 Prefixed
Prefixed Implemented with the vendor prefix: -webkit-
完整支持
Prefixed Implemented with the vendor prefix: -webkit-
Disabled layout.css.prefixes.webkit preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
不支持 1 — 12 Alternate Name
Alternate Name Uses the non-standard name: -moz-border-radius-bottomleft
IE 完整支持 9 Opera 完整支持 10.5 Safari 完整支持 5 WebView Android 完整支持 ≤37 Chrome Android 完整支持 18 Firefox Android 完整支持 4 注意事项
完整支持 4 注意事项
注意事项 Prior to Firefox 50, border styles of rounded corners were always rendered as if border-style was solid. This has been fixed in Firefox 50.
完整支持 Prefixed
Prefixed Implemented with the vendor prefix: -webkit-
完整支持
Prefixed Implemented with the vendor prefix: -webkit-
Disabled layout.css.prefixes.webkit preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
不支持 4 — 14 Alternate Name
Alternate Name Uses the non-standard name: -moz-border-radius-bottomleft
Opera Android 完整支持 11 Safari iOS 完整支持 4.2 Samsung Internet Android 完整支持 1.0
Elliptical corners Chrome 完整支持 1 Edge 完整支持 12 Firefox 完整支持 3.5 IE 完整支持 9 Opera 完整支持 10.5 Safari 完整支持 3 WebView Android 完整支持 ≤37 Chrome Android 完整支持 18 Firefox Android 完整支持 4 Opera Android 完整支持 14 Safari iOS 完整支持 1 Samsung Internet Android 完整支持 1.0
百分比 Chrome 完整支持 4 Edge 完整支持 12 Firefox 完整支持 4
完整支持 4
完整支持 1 注意事项
注意事项 Before Firefox 4, the <percentage> was relative to the width of the box even when specifying the radius for a height. This implied that -moz-border-radius-bottomleft was always drawing an arc of circle, and never an ellipse, when followed by a single value.
IE 完整支持 9 Opera 完整支持 10.5 Safari 完整支持 5 WebView Android 完整支持 ≤37 Chrome Android 完整支持 18 Firefox Android 完整支持 4 Opera Android 完整支持 14 Safari iOS 完整支持 4.2 Samsung Internet Android 完整支持 1.0

图例

完整支持

完整支持

见实现注意事项。

见实现注意事项。

用户必须明确启用此特征。

用户必须明确启用此特征。

使用非标名称。

使用非标名称。

要求使用供应商前缀或不同名称。

要求使用供应商前缀或不同名称。

另请参阅

元数据

  • 最后修改: