<repeating-radial-gradient>:repeating-radial-gradient([ <position>,]? [ [ <shape> || <size> ] | <shape-size>{2},]? <color-stop>[, <color-stop>]+);
<position>:[ <length>① | <percentage>① | left | center① | right ]? [ <length>② | <percentage>② | top | center② | bottom ]?
<shape>:circle | ellipse
<size>:closest-side | closest-corner | farthest-side | farthest-corner | contain | cover
<shape-size>:<length> | <percentage>
<color-stop>:<color> [ <length> | <percentage> ]?
示例代码:
(图一)
repeating-radial-gradient(circle contain,#f00,#ff0 10%,#f00 15%);
支持版本\类型 | IE | Firefox | Safari | Chrome | Opera |
---|---|---|---|---|---|
版本 | 6.0-9.0 | 4.0 | 5.1 | 13.0 | 11.50-11.51 |
版本 | 10.0 | 11.60 |
内核类型 | 写法 |
---|---|
Webkit(Chrome/Safari) | -webkit-repeating-radial-gradient() |
Gecko(Firefox) | -moz-repeating-radial-gradient() |
Presto(Opera) | -o-repeating-radial-gradient() |
Trident(IE) | -ms-repeating-radial-gradient() |
W3C | repeating-radial-gradient() |