1、css中的&语法
&是sass的语法,代表上一级选择器。
例如:
.el-row { ???margin-bottom: 20px; ???&:last-child{ ???margin-bottom: 0;}}
相当于css写法:
.el-row { ???margin-bottom: 20px;} ???.el-row:last-child { ???????margin-bottom: 0; ???}
css学习杂记
原文地址:https://www.cnblogs.com/wanggang2016/p/10544839.html