径向渐变
2023-11-14 本文已影响0人
xueyueshuai
#box {
width: 200px;
height: 200px;
background-image: radial-gradient(farthest-side at 50% 50%, red, yellow , green);
}
![](https://img.haomeiwen.com/i16376398/919faa17b77ba035.png)
#box {
width: 200px;
height: 200px;
background-image: repeating-radial-gradient(farthest-side at 50% 50%, red, yellow 10%, green 15%);
}
![](https://img.haomeiwen.com/i16376398/972b43671a2fcd7e.png)