2013-12-18 25 views
2

我有一個背景圖像和一個網格佈局。現在我想要網格佈局重複,但不是gackground-image本身。我該怎麼做?兩個背景圖像,只有一個應該重複

background-image: url('/image/grid.png'), url(../images/img-bg.jpg)!important; 
background-repeat: repeat; 

謝謝。

回答

3

您可以用逗號分隔多個background-images

嘗試:

background: url('/image/grid.png') repeat, url(../images/img-bg.jpg) no-repeat; 

Read more information here.