CSS repeating-radial-gradient() လုပ်ဆောင်ချက်
ဥပမာ
ထပ်ခါတလဲလဲ radial gradient-
#grad {
background-image: repeating-radial-gradient(red, yellow 10%, green 15%);
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
repeating-radial-gradient() function ကို radial gradient များကို ထပ်ခါထပ်ခါ ပြုလုပ်ရန် အသုံးပြုပါသည်။
ဗားရှင်း- | CSS3 |
---|
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် လုပ်ဆောင်ချက်ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
-webkit-၊ -moz- သို့မဟုတ် -o- ဖြင့်လိုက်သောနံပါတ်များသည် ရှေ့ဆက်တွဲတစ်ခုနှင့်အလုပ်လုပ်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပေးသည်။
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- |
CSS Syntax
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). |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Gradients