簡單點說,把你現有的“.css”文件直接修改成“.scss”即可使用。
在書寫 Sass 時不帶有大括號和分號
這不是沖突了?
在書寫 Sass 時不帶有大括號和分號
這不是沖突了?
2015-05-28
SCSS 和 CSS 寫法卻無差異化,這也是 Sass 后來越來越受大眾喜歡原因之一,他們可以說是一樣化了。
這句話好別扭啊
這句話好別扭啊
2015-05-28
老老實實按照下面步驟安裝:
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
sudo gem install sass
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
sudo gem install sass
2015-05-27
//welcome to imooc learn Sass
$body-width: 200px;
$body-height: 300px;
body {
width: $body-width;
height: $body-height;
}
-----------------
終于成功編譯了,(一)變量要有分號結尾,(二)px必須寫在變量里.
$body-width: 200px;
$body-height: 300px;
body {
width: $body-width;
height: $body-height;
}
-----------------
終于成功編譯了,(一)變量要有分號結尾,(二)px必須寫在變量里.
2015-05-27