-
22:59:04 goodluck 2016/3/25 22:59:04 p{ height: ( 500px /2); //计算可带单位,用相同单位 color: hsl( 270, 100%, 50%); //360度色盘度数,饱和度,明度 } sass的function(用的很少) 网址:http://sass-lang.com/documentation/Sass/Script/Functions.html查看全部
-
_mixin.scss @mixin col-6 { width:50%; float:left; } @mixin col ($width: 50%) {//默认参数为50% width: $width; float:left; } screen.scss中调用_mixin.scss .webdemo-sec{ @include col();//不传参 &:hover { background-color: #f5f5f5; } } .webdemo-sec{ @include col(25%);//传参 &:hover { background-color: #f5f5f5; } }查看全部
-
mixin指令 名字 参数 @mixin name (params) { //此处是内容 }查看全部
-
extent两个知识点: 1.不可以继承选择器序列 2.使用%,用来构建只用来继承的选择器查看全部
-
只用来继承的类 %error{color:red;} .serious-error{ @extend %error; border:1px #f00; }查看全部
-
compass compile compass watch查看全部
-
gem install compass查看全部
-
sass main.scss main.css查看全部
-
gem install sass --version=3.3查看全部
-
sass 函数演示查看全部
-
mixin 参数校验查看全部
-
屏幕尺寸大于768的时候生效查看全部
-
%用来构建一个仅用来继承的选择器查看全部
-
变量操作分为两种: 1.变量表达式 2.函数表达式(1.代码块无关的functions 2.代码重用的mixin)查看全部
-
属性嵌套后面有一个冒号: 元素嵌套后面没有冒号查看全部
举报
0/150
提交
取消