我有这个 html 标记:
<figure class="about half">
<figcaption class="head_section">
<h3>About</h3>
</figcaption>
</figure>
这个LESS设置:
figure {
//some style
&.half {
width: 48%;
}
figcaption {
h3 {
.about & & {
// what i need to do but isn't working
}
}
}
&.about {
h3 {
// some style i have which is working
}
}
}
所以,我的问题是如何引用两个 previus 类figure.about
以免过时h3
。我希望这很清楚......非常感谢。