美团小程序开发 美团APP开发
![](http://img.11467.com/2020/07-23/2979141385.jpg)
更新时间:2024-06-29 07:00:00
价格:请来电询价
联系电话:
联系手机:18627148124
联系人:廖经理
让卖家联系我
详细介绍
美团系统开发找廖经理【开发软件请联系上方】开发公司,美团小程序开发,美团APP系统软件开发,美团APP软件开发,美团APP系统开发,美团软件系统开发,美团小程序开发,美团开发模板
3、命名空间和作用域
在LESS的语法中,我们可以指定命名空间,实现在一个盒子中层级嵌套式的编写。下面案例中,.box就是命名空间,里面的img、.gray都是这个空间下的样式,调取的话需要.box > .gray。
//->LESS代码 .box { width: 100px; height: 100px; img { width: ; height: ; } .gray { color: #eee; } &:hover { background: green; } } #nav { .box; } #header { .box > .gray; } //->编译为CSS的结果 .box { width: 100px; height: 100px; } .box img { width: ; height: ; } .box .gray { color: #eee; } .box:hover { background: green; } #nav { width: 100px; height: 100px; } #nav img { width: ; height: ; } #nav .gray { color: #eee; } #nav:hover { background: green; } #header { color: #eee; }联系方式
- 地址:洪山区书城路7号名士1号3号楼6层19室(名士一号商务秘书-211号)(注册地址)
- 邮编:518111
- 联系电话:未提供
- 联系人:廖经理
- 手机:18627148124
- 传真:86-0755-84662603
- QQ:296387662
- Email:296387662@qq.com
产品分类
站内搜索