Hàm lặp lại CSS repeat-radial-gradient ()
❮ Tham chiếu các chức năng CSS
Thí dụ
Một gradient xuyên tâm lặp lại:
#grad {
background-image: repeating-radial-gradient(red, yellow 10%, green 15%);
}
Định nghĩa và Cách sử dụng
Hàm repeat-radial-gradient () được sử dụng để lặp lại các gradient xuyên tâm.
Phiên bản: | CSS3 |
---|
Hỗ trợ trình duyệt
Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ chức năng.
Các số theo sau -webkit-, -moz- hoặc -o- chỉ định phiên bản đầu tiên hoạt động với tiền tố.
Function | |||||
---|---|---|---|---|---|
repeating-radial-gradient() | 26.0 10.0 -webkit- |
10.0 | 16.0 3.6 -moz- |
6.1 5.1 -webkit- |
12.1 11.1 -o- |
Cú pháp CSS
background-image: repeating-radial-gradient(shape size at position, start-color, ..., last-color);
Value | Description |
---|---|
shape | Defines the shape of the gradient. Possible values:
|
size | Defines the size of the gradient. Possible values:
|
position | Defines the position of the gradient. Default is "center" |
start-color, ..., last-color | Color stops are the colors you want to render smooth transitions among. This value consists of a color value, followed by an optional stop position (a percentage between 0% and 100% or a length along the gradient axis). |
Các trang liên quan
Hướng dẫn CSS: CSS Gradients
❮ Tham chiếu các chức năng CSS