CSS3 Backgrounds - multiple background-size properties

后端 未结 1 1803
无人共我
无人共我 2020-12-11 11:32

I\'m trying to do something maybe impossible, but lets see what do you think. Here is my code:

html {
    background:         


        
相关标签:
1条回答
  • 2020-12-11 12:32

    You need to reset the size for the first image, then specify it for the second. The spec says that the initial value of background-size is auto, which means:

    -webkit-background-size: auto, cover;
    -moz-background-size: auto, cover;
    -o-background-size: auto, cover;
    background-size: auto, cover;
    
    0 讨论(0)
提交回复
热议问题