2015-03-25 42 views
0

我目前正在與SASS(SCSS)和基金會5框架工作。背景重複不與sass和基金會合作5

我想通過一個mixin工作,但由於某種原因我無法獲得「重複」CSS功能正常工作的背景圖像。所有其他的CSS功能都可以正常工作。

@mixin cover-background($img-uri, $background-top:"center", $repeat:"repeat", $background-left:"center", $background-attachment:"fixed") { 
    background: url($img-uri) unquote($repeat) unquote($background-top) unquote($background-left) unquote($background-attachment); 

    } 

    body{ 
     @include cover-background('http://IMAGE.png'); 
    } 

出於某種原因,圖像拉得很好,它居中,但不會重複它。

任何想法?

回答

0

那麼我想清楚發生了什麼事。

-webkit-background-size: cover; 
    -moz-background-size: cover; 
    -o-background-size: cover; 
    background-size: cover; 

這是壓倒一切的重複。對不起大家。