<style type="text/less">
@b:b;
.test{
.a(@x:200px){
width: @x;
.b(@y:400px){
width: @x;
}
}
}
-sharp@{b}{
.test > .a > .b(200px);
}
</style>
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"></script>
<div class="test"></div>
<div id="b">
<span></span>
<span class="test">1111111111</span>
</div>
Why do you read the materials on @ x undefined and say that you can use the method passed in from the upper level, that is, @ x
in .b?