您当前的位置: 首页 > 

暂无认证

  • 3浏览

    0关注

    92582博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

LESS第五课(匹配模式 导入其他的less文件)

发布时间:2020-07-22 23:37:36 ,浏览量:3

//记住,@_一定会被执行,第一开始执行的,然后是执行应该执行的啊 就是通过混合的((第一个字符串形参)),来确定具体要执行哪一个同名混合

"en">"UTF-8">Document
		

在这里插入图片描述

导入其他的less文件: //这下面是导入的文件=====================

.triangle(@_, @width, @color){ width: 0; height: 0; border-style: solid solid solid solid; } .triangle(Down, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: @color transparent transparent transparent; } .triangle(Top, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: transparent transparent @color transparent; } .triangle(Left, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: transparent @color transparent transparent; } .triangle(Right, @width, @color){ //width: 0; //height: 0; border-width: @width; //border-style: solid solid solid solid; border-color: transparent transparent transparent @color; } ==========================================

在这里插入图片描述

"en">"UTF-8">Document
		
关注
打赏
1653961664
查看更多评论
立即登录/注册

微信扫码登录

0.3997s