In LESS-CSS, this:
.a {
.b {
font-color:red;
}
}
is equivalent to
.a .b {
font-color:red;
}
Is there an nested equivalent of >
?
.a > .b {
font-color:red;
}
This does it:
.a {
> .b {
font-color:red;
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.