sumin chae
Feb 23, 2017 · 1 min read

sass에서 반복문 사용하기

@for는 각 반복마다 카운트 변수를 사용할 수 있다.

@each 반복문은 반복문들 중에서 가장 많이 사용된다고 한다. 이 반복문은 리스트나 맵을 순환할 수도 있다.

@while 문 예제이다.


실제 웹서비스에서 사용한 방법이다.

http://www.sassmeister.com/

컴파일을 테스트해볼 수 있다.

sumin chae

Written by

Front-end Developer, https://github.com/suminc7

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade