2016-10-29 10 views
0

저는 부트 스트랩의 초보자이며이 개념을 이해할 수 없습니다. 코드의 의미는 무엇입니까?부트 스트랩에서 믹스 인의 역할은 무엇입니까?

// Creates wrapper for a series of columns 

.make-row(@gutter: @grid-gutter-width) { 

    // Then clear the floated columns 
    .clearfix(); 

    @media (min-width: @screen-sm-min) { 
    margin-left: (@gutter/-2); 
    margin-right: (@gutter/-2); 
    } 

    // Negative margin nested rows out to align the content of columns 
    .row { 
    margin-left: (@gutter/-2); 
    margin-right: (@gutter/-2); 
    } 
} 
+0

설명해주세요. –

답변

0

이미이 mixin을 CSS로 컴파일 해 보시겠습니까? 나는 그것이 자명하다라고 생각한다. 믹스 인은 간단한 기능 (매개 변수를 사용하거나 사용하지 않음)처럼 취급 될 수 있습니다.

Look at the compiled code.