摘要:        
less中文网站:http://lesscss.cn/ 旧版的:http://www.bootcss.com/p/lesscss/ less中文网站:http://lesscss.cn/ 旧版的:http://www.bootcss.com/p/lesscss/    阅读全文
posted @ 2018-07-16 07:03
wzndkj
阅读(3167)
评论(0)
推荐(0)
        
            
        
        
摘要:        
!important关键字:会为所有混合带来的样式,添加!important 在css里面加上!important,是所有样式优先级最高的 在less里面什么场景会用important,在调试的时候 .border_03{ border:1px solid pink; } .test_importa    阅读全文
posted @ 2018-07-16 06:57
wzndkj
阅读(846)
评论(0)
推荐(0)
        
            
        
        
摘要:        
less里面有一个避免编译,有时候我们需要输出一些不正确的css语法或者使用less不认识的专有语法。要输出这样的值我们可以在字符串前加上一个~ /*避免编译*/ .test_03{ width: 300px; height: calc(300px - 30px); } => .test_03 {     阅读全文
posted @ 2018-07-16 06:49
wzndkj
阅读(1125)
评论(0)
推荐(0)
        
            
        
        
摘要:        
@arguments变量:包含了所有传递进来的参数。 如果你不想单独处理每一个参数的话可以像这样写: /*arguments*/ //之前这么写 .border_arg(@w:30px,@c:red,@xx:solid){ border:@w @c @xx } //现在这么写,就是懒,可以用的不多     阅读全文
posted @ 2018-07-16 06:40
wzndkj
阅读(546)
评论(0)
推荐(0)
        
            
        
        
摘要:        
嵌套,是less里面最有意思的小东西,比如说我们经常性的去写一些列表性的东西 html <ul class="list"> <li><a href="#">links</a><span>2018-07-16</span></li> <li><a href="#">links</a><span>201    阅读全文
posted @ 2018-07-16 06:32
wzndkj
阅读(748)
评论(0)
推荐(0)
        
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号