我有这样的HTML标记:
<figure class="about half">
<figcaption class="head_section">
<h3>About</h3>
</figcaption>
</figure>
而这,设置起来:
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
}
}
}
所以,我的问题是如何引用2 previus类figure.about
以免出风格h3
。 我希望这是明确的......很多THX。