2016-02-29 54 views
0

有人可以直接指導我如何轉換這個rake資產:預編譯rake中止! Sass :: SyntaxError:「... mages/patternbg」後的無效CSS:預計「)」,是「.png)repeat-x ...」

.left-pane { 
    ... 
    background: url(themes/base/images/patternbg.png) repeat-x #efefef; 
    ... 
} 

.left-pane { 
    ... 
    background: image-url(themes/base/images/patternbg.png) repeat-x #efefef; 
    ... 
} 

我學習Rails和嘗試部署在Apache爲此我需要使用image-url代替url在我的SCSS文件加載圖片(不,他們不)的應用但rake assets:precompile會引發以下錯誤

rake assets:precompile rake aborted! Sass::SyntaxError: Invalid CSS after "...mages/patternbg": expected ")", was ".png) repeat-x ..."

回答

2

嘗試增加引號:

background: image-url('themes/base/images/patternbg.png') repeat-x #efefef; 
相關問題