Can I apply multiple background colors with CSS3?

后端 未结 6 2060
死守一世寂寞
死守一世寂寞 2020-11-27 06:13

I know how to specify multiple background images using CSS3 and modify how they are displayed using different options.

Currently I have a

, w
6条回答
  •  长情又很酷
    2020-11-27 07:07

    You can only use one color but as many images as you want, here is the format:

    background: [  , ]* 
    

    = || [ / ]? || || || {1,2}

    = || [ / ]? || || || {1,2} ||

    or background: url(image1.png) center bottom no-repeat, url(image2.png) left top no-repeat;

    If you need more colors, make an image of a solid color and use it. I know it’s not what you want to hear, but I hope it helps.

    The format is from http://www.css3.info/preview/multiple-backgrounds/

提交回复
热议问题