<repeating-radial-gradient> = radial-gradient([ [ <shape> || <size> ] [ at <position> ]? , | at <position>, ]?<color-stop>[ , <color-stop> ]+)
<position> = [ <length>① | <percentage>① | left | center① | right ]? [ <length>② | <percentage>② | top | center② | bottom ]?
<shape> = circle | ellipse
<size> = <extent-keyword> | [ <circle-size> || <ellipse-size> ]
<extent-keyword> = closest-side | closest-corner | farthest-side | farthest-corner
<circle-size> = <length>
<ellipse-size> = [ <length> | <percentage> ]{2}
<shape-size> = <length> | <percentage>
<color-stop> = <color> [ <length> | <percentage> ]?
示例代码:
(图一)
repeating-radial-gradient(circle closest-side, #f00, #ff0 10%, #f00 15%);
IE | Edge | Firefox | Chrome | Safari | Opera | iOS Safari |
Android Browser |
Blackberry Browser |
Opera Mobile |
Chrome for Android |
Firefox for Android |
IE Mobile |
UC Browser for Android |
Samsung Internet |
QQ Browser |
Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5.5-9 | 12+ | 2-3.5 | 4-9 | 3.1-5 | 9-11 | 3.2-4.3 | 2.1-3 | 7 | 10-11 | 61 | 56 | 10+ | 11.4 | 4+ | 1.2 | 7.12 |
10+ | 3.6-15 -moz- | 10-25 -webkit- | 5.1-6 -webkit- | 11.1-11.5 -o- | 5.0-6.1 -webkit- | 4-4.3 -webkit- | 10 | 11.1-11.5 -o- | ||||||||
16+ | 26+ | 6.1+ | 11.6-12 -o- | 7.0+ | 4.4+ | 12 -o- | ||||||||||
12.1+ | 12.1+ |