sass嵌套CSS 規則;

css中重複寫選擇器是很是惱人的。但在Sass中,你能夠在規則塊中嵌套規則塊。如: #content { article { h1 { color: #333 } p { margin-bottom: 1.4em } } aside { background-color: #EEE } } /* 編譯後 */ #content article h1 { color:
相關文章
相關標籤/搜索