-
SCSS의 기본 사용 방법
{}안에 자식요소 태그(class, ID등)를 쓰면 자동으로 부모요소에서 인식해 준다.// index.html <div> <p>배고파</p> </div>
// style.SCSS div { background: red; width: 400px; height: 400px; p { color: white; font-weight: bold; text-align: center; } }
출력:
// style.CSS div {background: red; width: 400px; height: 400px;} div p {color: white; font-weight: bold; text-align: center;}
'Front-End' 카테고리의 다른 글
스마트폰에서 pre 문자 자동 단락조절 CSS (0) 2014.05.01 html5 요소 + IE핵 (2) 2013.06.13 CSS 폰트사이즈 정리 (1) 2013.06.06 실전에서 유용하게 쓰이는 CSS 코드 -2- (1) 2013.06.06 실전에서 유용하게 쓰이는 CSS 코드 -1- (1) 2013.06.06