How to apply multiple css radial gradients to a single element

前端 未结 4 1581
-上瘾入骨i
-上瘾入骨i 2021-01-03 05:39

I have the following style applied to my div element:

background-image: -moz-radial-gradient(50% -10%, ellipse closest-corner, rgba(5, 5, 5, 0.7         


        
4条回答
  •  别那么骄傲
    2021-01-03 06:23

    You just list them one after the other - like this:

    background: radial-gradient(top left, 
                rgb(205, 230, 235) 34%, 
                transparent 34%), 
            radial-gradient(center, 
                rgb(205, 230, 235) 34%, 
                transparent 34%);
    

    You can see it working at http://dabblet.com/gist/2759668

提交回复
热议问题