径向渐变

2023-11-14  本文已影响0人  xueyueshuai
        #box {
            width: 200px;
            height: 200px;
            background-image: radial-gradient(farthest-side at 50% 50%, red, yellow , green);
        }
image.png
        #box {
            width: 200px;
            height: 200px;
            background-image: repeating-radial-gradient(farthest-side at 50% 50%, red, yellow 10%, green 15%);
        }
image.png
上一篇 下一篇

猜你喜欢

热点阅读