我想批量处理wrap内的样式,就是每个div中第一个span内的文字为红色,第二个span的元素为白色,请问这个该怎么解决呢?
css和less的相关方法都可以
<div className="wrap">
<div>
<span>11</span>
<span>11</span>
</div>
<div>
<span>11</span>
<span>11</span>
</div>
<div>
<span>11</span>
<span>11</span>
</div>
<div>
<span>11</span>
<span>11</span>
</div>
<div>
<span>11</span>
<span>11</span>
</div>
</div>
less
: